mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 00:08:21 +00:00
70c089e696
Fix environment objects Hide video player placeholder on tvOS Queue improvements
22 lines
502 B
Swift
22 lines
502 B
Swift
import AVKit
|
|
import SwiftUI
|
|
|
|
final class PlayerViewController: NSViewController {
|
|
var playerModel: PlayerModel!
|
|
var playerView = AVPlayerView()
|
|
|
|
override func viewDidDisappear() {
|
|
// TODO: pause on disappear settings
|
|
super.viewDidDisappear()
|
|
}
|
|
|
|
override func loadView() {
|
|
playerView.player = playerModel.player
|
|
|
|
playerView.allowsPictureInPicturePlayback = true
|
|
playerView.showsFullScreenToggleButton = true
|
|
|
|
view = playerView
|
|
}
|
|
}
|