Преглед изворни кода

VLCWatchCommunication: replace deprecated API to fix compilation warning

Felix Paul Kühne пре 8 година
родитељ
комит
cd89737cd9
1 измењених фајлова са 1 додато и 1 уклоњено
  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);
     }