Skip to content

seems that there is an issue with audio voice not transferring during audio/video calls between Android and iOS in flutter #79

Description

@anilthummar

@vdovbnya-qb

It seems that there is an issue with audio voice not transferring during audio/video calls between Android and iOS when using the QuickBlox library in Flutter. This problem occurs approximately 1 to 2 times out of 12 calls.

Can you please help me with the same, I have used the quickblox_sdk: ^0.12.8 version.

await QB.chat .connect(SharedPrefs.getQuickBloxId() ?? 0, "${SharedPrefs.getMobileNumber()}") .whenComplete(() { _initWebRTC(context, sessionType, isFromNotification: isFromNotification); });

  `Future<void> _initWebRTC(BuildContext context, int sessionType,
  {bool isFromNotification = false}) async {
try {
  await QB.webrtc.init().whenComplete(() {
    _subscribeEvents(context, isFromNotification: isFromNotification);
    if (SharedPrefs.getReceiverQuickBloxId() !=
            SharedPrefs.getQuickBloxId() &&
        isFromNotification == false) {
      _createCall(sessionType, context).whenComplete(() async {});
    }
  });
} catch (e) {
  debugPrint(">>>>>>>>>>>>>  ERROR :- _initWebRTC exception");
}

}`

Future<void> _createCall(int sessionType, BuildContext context) async { try { QBRTCSession? session = await QB.webrtc .call([SharedPrefs.getReceiverQuickBloxId() ?? 0], sessionType); _sessionId = session?.id; initiatorId = session?.initiatorId; opponentsIds = session?.opponentsIds; await SharedPrefs.setSessionId("$_sessionId"); } catch (e) { debugPrint(">>>>>>>>>>>>> ERROR :- create Call exception >>>>>>>>>> "); } }

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions