Explorar el Código

VLCWatchCommunication: replace deprecated API to fix compilation warning

Felix Paul Kühne hace 8 años
padre
commit
cd89737cd9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
     }