marinofaggiana %!s(int64=3) %!d(string=hai) anos
pai
achega
c37059387e
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      iOSClient/Viewer/NCViewerVideo/NCViewerVideo.swift

+ 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) {