1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 22:00:31 +05:30
yattee/macOS/PlayerViewController.swift
Arkadiusz Fal 70c089e696 Initial functionality of player items queue
Fix environment objects

Hide video player placeholder on tvOS

Queue improvements
2021-10-13 23:47:56 +02:00

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
}
}