فهرست منبع

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);
     }