mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-21 08:32:00 +00:00
parent
469d8d854e
commit
fc452fe77b
1 changed files with 2 additions and 0 deletions
|
|
@ -1797,6 +1797,8 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
|
||||||
wasPlayingBeforeBackground = player.rate > 0
|
wasPlayingBeforeBackground = player.rate > 0
|
||||||
if isPipAutoEnabled && AVPictureInPictureController.isPictureInPictureSupported() {
|
if isPipAutoEnabled && AVPictureInPictureController.isPictureInPictureSupported() {
|
||||||
startPipIfNeeded()
|
startPipIfNeeded()
|
||||||
|
} else {
|
||||||
|
player.pause()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue