mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-11 17:45:37 +00:00
ststufs
This commit is contained in:
parent
5cfb0acc92
commit
c0771d8832
1 changed files with 13 additions and 0 deletions
|
|
@ -428,7 +428,20 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
|
|||
NotificationCenter.default.removeObserver(foregroundToken)
|
||||
}
|
||||
|
||||
inactivityTimer?.invalidate()
|
||||
updateTimer?.invalidate()
|
||||
lockButtonTimer?.invalidate()
|
||||
dimButtonTimer?.invalidate()
|
||||
loadedTimeRangesObservation?.invalidate()
|
||||
playerTimeControlStatusObserver?.invalidate()
|
||||
volumeObserver?.invalidate()
|
||||
|
||||
player.replaceCurrentItem(with: nil)
|
||||
player.pause()
|
||||
|
||||
playerViewController = nil
|
||||
sliderHostingController = nil
|
||||
try? AVAudioSession.sharedInstance().setActive(false)
|
||||
}
|
||||
|
||||
override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue