Commit cd89737c authored by Felix Paul Kühne's avatar Felix Paul Kühne

VLCWatchCommunication: replace deprecated API to fix compilation warning

parent c8d2d628
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment