Improve setting audio session

This commit is contained in:
Arkadiusz Fal
2022-08-26 22:44:02 +02:00
parent 60f38a80aa
commit 1cf37e5a00
4 changed files with 5 additions and 13 deletions

View File

@@ -755,11 +755,6 @@ final class PlayerModel: ObservableObject {
remoteCommandCenterConfigured = true
#if !os(macOS)
try? AVAudioSession.sharedInstance().setCategory(
.playback,
mode: .moviePlayback
)
UIApplication.shared.beginReceivingRemoteControlEvents()
#endif