mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Revert "Improve setting audio session"
This reverts commit eedc8f32d1
.
Fix #307
This commit is contained in:
@@ -714,6 +714,11 @@ final class PlayerModel: ObservableObject {
|
||||
remoteCommandCenterConfigured = true
|
||||
|
||||
#if !os(macOS)
|
||||
try? AVAudioSession.sharedInstance().setCategory(
|
||||
.playback,
|
||||
mode: .moviePlayback
|
||||
)
|
||||
|
||||
UIApplication.shared.beginReceivingRemoteControlEvents()
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user