Procházet zdrojové kódy

VLCWatchCommunication: replace deprecated API to fix compilation warning

Felix Paul Kühne před 8 roky
rodič
revize
cd89737cd9
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Sources/VLCWatchCommunication.m

+ 1 - 1
Sources/VLCWatchCommunication.m

@@ -155,7 +155,7 @@ static VLCWatchCommunication *_singeltonInstance = nil;
 - (NSDictionary *)nowPlayingResponseDict {
     NSMutableDictionary *response = [NSMutableDictionary new];
     NSMutableDictionary *nowPlayingInfo = [[MPNowPlayingInfoCenter defaultCenter].nowPlayingInfo mutableCopy];
-    NSNumber *playbackTime = [VLCPlaybackController sharedInstance].mediaPlayer.time.numberValue;
+    NSNumber *playbackTime = [VLCPlaybackController sharedInstance].mediaPlayer.time.value;
     if (playbackTime) {
         nowPlayingInfo[MPNowPlayingInfoPropertyElapsedPlaybackTime] = @(playbackTime.floatValue/1000);
     }