1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-15 14:50:32 +05:30
yattee/Apple TV/StreamAVPlayerViewController.swift

12 lines
248 B
Swift
Raw Normal View History

2021-06-17 00:42:41 +05:30
import AVKit
2021-06-17 15:32:39 +05:30
final class StreamAVPlayerViewController: AVPlayerViewController {
2021-06-17 00:42:41 +05:30
var state: PlayerState?
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
state?.destroyPlayer()
}
}