Selaa lähdekoodia

Update NCPlayer.swift

Marino Faggiana 1 vuosi sitten
vanhempi
commit
00a41f5d37
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayer.swift

+ 3 - 0
iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayer.swift

@@ -101,6 +101,9 @@ class NCPlayer: NSObject {
             thumbnailer = VLCMediaThumbnailer(media: media, andDelegate: self)
         }
 
+        player?.play()
+        player?.pause()
+
         NotificationCenter.default.addObserver(self, selector: #selector(applicationDidEnterBackground(_:)), name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterApplicationDidEnterBackground), object: nil)
     }