Commit d9908ba7 authored by Carola Nitz's avatar Carola Nitz

VLCMetadata: use the mediaplayer.time to correctly display the playback progress

parent 37f9ca3e
......@@ -97,7 +97,7 @@
}
self.playbackDuration = @(mediaPlayer.media.length.intValue / 1000.);
self.playbackRate = @(mediaPlayer.rate);
self.elapsedPlaybackTime = @(mediaPlayer.media.length.intValue / 1000.);
self.elapsedPlaybackTime = @(mediaPlayer.time.value.floatValue / 1000.);
[[NSNotificationCenter defaultCenter] postNotificationName:VLCPlaybackControllerPlaybackMetadataDidChange object:self];
#if TARGET_OS_IOS
if ([[VLCKeychainCoordinator defaultCoordinator] passcodeLockEnabled]) return;
......
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