Browse Source

Update NCPlayer.swift

Marino Faggiana 1 year ago
parent
commit
2a6aa3a2b9
1 changed files with 0 additions and 9 deletions
  1. 0 9
      iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayer.swift

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

@@ -294,18 +294,9 @@ extension NCPlayer: VLCMediaThumbnailerDelegate {
 
         do {
             image = UIImage(cgImage: thumbnail)
-            // Update Playing Info Center
-            // let mediaItemPropertyTitle = MPNowPlayingInfoCenter.default().nowPlayingInfo?[MPMediaItemPropertyTitle] as? String
-            // if let image = image, mediaItemPropertyTitle == metadata.fileNameView {
-            //    MPNowPlayingInfoCenter.default().nowPlayingInfo?[MPMediaItemPropertyArtwork] = MPMediaItemArtwork(boundsSize: image.size) { _ in
-            //        return image
-            //    }
-            // }
-            // Preview
             if let data = image?.jpegData(compressionQuality: 0.5) {
                 try data.write(to: URL(fileURLWithPath: fileNamePreviewLocalPath), options: .atomic)
             }
-            // Icon
             if let data = image?.jpegData(compressionQuality: 0.5) {
                 try data.write(to: URL(fileURLWithPath: fileNameIconLocalPath), options: .atomic)
             }