mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-13 14:35:59 +00:00
parent
4c534be61b
commit
92bf2a0df8
1 changed files with 0 additions and 13 deletions
|
|
@ -428,20 +428,7 @@ 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