mirror of
https://github.com/yattee/yattee.git
synced 2024-11-14 01:58:24 +00:00
12 lines
248 B
Swift
12 lines
248 B
Swift
import AVKit
|
|
|
|
final class StreamAVPlayerViewController: AVPlayerViewController {
|
|
var state: PlayerState?
|
|
|
|
override func viewWillDisappear(_ animated: Bool) {
|
|
super.viewWillDisappear(animated)
|
|
|
|
state?.destroyPlayer()
|
|
}
|
|
}
|