|
@@ -109,6 +109,10 @@ protocol NCViewerVideoDelegate {
|
|
|
|
|
|
extension NCViewerVideo: AVPlayerViewControllerDelegate {
|
|
extension NCViewerVideo: AVPlayerViewControllerDelegate {
|
|
|
|
|
|
|
|
+ func playerViewControllerShouldAutomaticallyDismissAtPictureInPictureStart(_ playerViewController: AVPlayerViewController) -> Bool {
|
|
|
|
+ false
|
|
|
|
+ }
|
|
|
|
+
|
|
func playerViewControllerDidStartPictureInPicture(_ playerViewController: AVPlayerViewController) {
|
|
func playerViewControllerDidStartPictureInPicture(_ playerViewController: AVPlayerViewController) {
|
|
pictureInPicture = true
|
|
pictureInPicture = true
|
|
delegateViewerVideo?.startPictureInPicture(metadata: metadata)
|
|
delegateViewerVideo?.startPictureInPicture(metadata: metadata)
|