marinofaggiana 4 năm trước cách đây
mục cha
commit
85c71ff4c8

+ 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