소스 검색

Update NCPlayer.swift

Marino Faggiana 2 년 전
부모
커밋
00a41f5d37
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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)
     }