@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.