mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
don’t activate AVAudioSession on app start
Signed-off-by: Toni Förster <toni.foerster@gmail.com>
This commit is contained in:
@@ -362,8 +362,11 @@ final class AVPlayerBackend: PlayerBackend {
|
||||
self.asset = nil
|
||||
}
|
||||
|
||||
|
||||
let startPlaying = {
|
||||
#if !os(macOS)
|
||||
try? AVAudioSession.sharedInstance().setActive(true)
|
||||
#endif
|
||||
|
||||
self.setRate(self.model.currentRate)
|
||||
|
||||
guard let item = self.model.playerItem, self.isAutoplaying(item) else { return }
|
||||
|
Reference in New Issue
Block a user