From 79b30a54d60e54fb089dcdede382508b04a8e7f4 Mon Sep 17 00:00:00 2001 From: "james.warren@puregym.com" Date: Wed, 3 Jul 2024 15:18:01 +0100 Subject: [PATCH] Added MixWithOthers to audio session init for iOS --- MediaManager/Platforms/Ios/Player/IosMediaPlayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaManager/Platforms/Ios/Player/IosMediaPlayer.cs b/MediaManager/Platforms/Ios/Player/IosMediaPlayer.cs index f824e236..ddcece69 100644 --- a/MediaManager/Platforms/Ios/Player/IosMediaPlayer.cs +++ b/MediaManager/Platforms/Ios/Player/IosMediaPlayer.cs @@ -102,7 +102,7 @@ protected override void Initialize() var audioSession = AVAudioSession.SharedInstance(); try { - audioSession.SetCategory(AVAudioSession.CategoryPlayback); + audioSession.SetCategory(AVAudioSessionCategoryOptions.Playback, AVAudioSessionCategoryOptions.MixWithOthers); audioSession.SetActive(true, out var activationError); if (activationError != null) Console.WriteLine("Could not activate audio session {0}", activationError.LocalizedDescription);