Explorar o código

Fix

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana %!s(int64=3) %!d(string=hai) anos
pai
achega
acaa90e50d
Modificáronse 1 ficheiros con 2 adicións e 9 borrados
  1. 2 9
      iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayer.swift

+ 2 - 9
iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayer.swift

@@ -135,15 +135,8 @@ class NCPlayer: NSObject {
                 }
 
                 if (playerItem.status == .readyToPlay || playerItem.status == .failed) {
-                    if (playerItem.status == .readyToPlay) {
-                        if self.isPlayerReady(player) {
-                            print("Player ready")
-                            self.startPlayer()
-                        }
-                    } else {
-                        print("Player ready to convert")
-                        self.startPlayer()
-                    }
+                    print("Player ready")
+                    self.startPlayer()
                 } else {
                     print("Player not ready")
                 }