Преглед на файлове

fix

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana преди 3 години
родител
ревизия
9d991fee5b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayerToolBar.swift

+ 1 - 1
iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayerToolBar.swift

@@ -296,7 +296,7 @@ class NCPlayerToolBar: UIView {
         */
         
         nowPlayingInfo[MPMediaItemPropertyTitle] = metadata?.fileNameView
-        nowPlayingInfo[MPMediaItemPropertyPlaybackDuration] = ncplayer.player?.currentItem?.asset.duration.seconds
+        nowPlayingInfo[MPMediaItemPropertyPlaybackDuration] = ncplayer.durationTime.seconds
         if let image = self.image {
             nowPlayingInfo[MPMediaItemPropertyArtwork] = MPMediaItemArtwork(boundsSize: image.size) { size in
                 return image