mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
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
|
|
}
|
|
}
|