Skip to content

Commit b540949

Browse files
authored
fix(llc): fix android audio configuration setup (#1070)
* fix android audio configuration setup * changelog
1 parent bcaeecb commit b540949

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

packages/stream_video/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
🐞 Fixed
44
* Fixed an issue where the leave call operation could fail if the there were some issues in parsing custom data.
5+
* Fixed an issue where the Android audio configuration could not be applied correctly for participants joining the call
56

67
## 0.10.4
78

packages/stream_video/lib/src/call/session/call_session.dart

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,20 @@ class CallSession extends Disposable {
409409
await onRtcManagerCreatedCallback?.call(rtcManager!);
410410
_rtcManagerSubject!.add(rtcManager!);
411411

412+
// Set Android audio configuration right after creating rtcManager
413+
if (CurrentPlatform.isAndroid &&
414+
_streamVideo.options.androidAudioConfiguration != null) {
415+
try {
416+
await rtc.Helper.setAndroidAudioConfiguration(
417+
_streamVideo.options.androidAudioConfiguration!,
418+
);
419+
} catch (e) {
420+
_logger.w(
421+
() => '[start] Failed to set Android audio configuration: $e',
422+
);
423+
}
424+
}
425+
412426
stateManager.sfuPinsUpdated(event.callState.pins);
413427

414428
_logger.d(() => '[start] completed');

0 commit comments

Comments
 (0)