mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Set AVAudioSession, disable screensaver during playback on macOS
This commit is contained in:
@@ -11,9 +11,6 @@ final class PlayerViewController: UIViewController {
|
||||
super.viewWillAppear(animated)
|
||||
|
||||
loadPlayer()
|
||||
|
||||
try? AVAudioSession.sharedInstance().setCategory(.playback, mode: .moviePlayback)
|
||||
try? AVAudioSession.sharedInstance().setActive(true)
|
||||
}
|
||||
|
||||
func loadPlayer() {
|
||||
|
Reference in New Issue
Block a user