Skip to content

Commit eeb740e

Browse files
authored
Merge branch 'main' into fix/android-ringing-detached
2 parents 5b85a03 + f69e458 commit eeb740e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

packages/stream_video/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* Fixed network availability verification during subsequent fast reconnect attempts.
1414
* Added `reconnectReason` to reconnect details for sfu logs.
1515
* Fixed race condition where automatic ICE restart could interfere with fast reconnect, causing subscriber video to not recover.
16+
* Fixed iOS audio session not being released when leaving a call, which prevented other audio packages from using the microphone.
1617

1718
## 1.2.2
1819
* Sync version with `stream_video_flutter` 1.2.2

packages/stream_video/lib/src/webrtc/rtc_manager.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,14 @@ class RtcManager extends Disposable {
480480
onLocalTrackPublished = null;
481481
onRemoteTrackReceived = null;
482482

483+
if (CurrentPlatform.isIos) {
484+
try {
485+
await RtcMediaDeviceNotifier.instance.pauseAudioPlayout();
486+
} catch (e) {
487+
_logger.w(() => '[dispose] pauseAudioPlayout failed: $e');
488+
}
489+
}
490+
483491
await Future.wait([
484492
if (publisher != null)
485493
publisher!.dispose().catchError((Object e, StackTrace stk) {

0 commit comments

Comments
 (0)