You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -491,6 +491,30 @@ public void TryRestartAudioPlayback()
491
491
#endif
492
492
}
493
493
494
+
//StreamTODO: temp solution to allow stopping the audio when app is minimized. User tried disabling the AudioSource but the audio is handled natively so it has no effect
495
+
publicvoidPauseAndroidAudioPlayback()
496
+
{
497
+
#if STREAM_NATIVE_AUDIO
498
+
WebRTC.StopAudioPlayback();
499
+
_logs.Warning("Audio Playback is paused. This stops all audio coming from StreamVideo SDK on Android platform.");
500
+
#else
501
+
thrownewNotSupportedException(
502
+
$"{nameof(PauseAndroidAudioPlayback)} is only supported on Android platform.");
503
+
#endif
504
+
}
505
+
506
+
//StreamTODO: temp solution to allow stopping the audio when app is minimized. User tried disabling the AudioSource but the audio is handled natively so it has no effect
0 commit comments