marinofaggiana 3 жил өмнө
parent
commit
c37059387e

+ 7 - 0
iOSClient/Viewer/NCViewerVideo/NCViewerVideo.swift

@@ -86,6 +86,13 @@ class NCViewerVideo: AVPlayerViewController {
             }
             player?.isMuted = CCUtility.getAudioMute()
         }
+        
+        // AIRPLAY
+        if CCUtility.fileProviderStorageExists(metadata.ocId, fileNameView: metadata.fileNameView) {
+            player?.allowsExternalPlayback = true
+        } else {
+            player?.allowsExternalPlayback = false
+        }
     }
     
     override func viewWillDisappear(_ animated: Bool) {