marinofaggiana 4 سال پیش
والد
کامیت
85c71ff4c8
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      iOSClient/Viewer/NCViewerVideoAudio/NCViewerVideoAudio.swift

+ 2 - 2
iOSClient/Viewer/NCViewerVideoAudio/NCViewerVideoAudio.swift

@@ -50,13 +50,13 @@ class NCViewerVideoAudio: AVPlayerViewController {
                 return
             }
             
+            allowsPictureInPicturePlayback = false
             videoURL = NCKTVHTTPCache.shared.getProxyURL(stringURL: stringURL)
         }
         
         if let url = videoURL {
             
-            let video = AVPlayer(url: url)
-            player = video
+            player = AVPlayer(url: url)
         
             // At end go back to start
             NotificationCenter.default.addObserver(forName: .AVPlayerItemDidPlayToEndTime, object: nil, queue: nil) { (notification) in