Page 1 of 1

Strange timing for VLCMediaPlayerDelegate calls

Posted: 02 Nov 2016 16:04
by anpop
Hello. While playing MJPEG video through VLCMediaPlayer on iOS simulator/device with delegate field properly initialized. The problem is - delegate method "mediaPlayerTimeChanged" called with strange player.time property "progress". So expected sequence is 00:01,00:02,00:03,00:04,00:05....instead get 00:01,00:01,00:03,00:04,00:06,00:07... (the log from the console):

Code: Select all

2016-11-02 16:58:53.866 TestVLC[99872:829697] Player.time: 00:01 2016-11-02 16:58:54.277 TestVLC[99872:829697] Player.time: 00:01 2016-11-02 16:58:55.778 TestVLC[99872:829697] Player.time: 00:03 2016-11-02 16:58:57.277 TestVLC[99872:829697] Player.time: 00:04 2016-11-02 16:58:58.780 TestVLC[99872:829697] Player.time: 00:06 2016-11-02 16:59:00.278 TestVLC[99872:829697] Player.time: 00:07 2016-11-02 16:59:01.778 TestVLC[99872:829697] Player.time: 00:09 2016-11-02 16:59:03.279 TestVLC[99872:829697] Player.time: 00:10 2016-11-02 16:59:04.776 TestVLC[99872:829697] Player.time: 00:12 2016-11-02 16:59:06.279 TestVLC[99872:829697] Player.time: 00:13 2016-11-02 16:59:07.779 TestVLC[99872:829697] Player.time: 00:15
Trying to use vlc via the pod -> "MobileVLCKit-prod" and by importing compiled binary, the last one from: http://nightlies.videolan.org/build/iOS/ . Also trying to pass different options to the player like "--no-drop-late-frames", "--no-avcodec-hurry-up" etc., but wasn't lucky...