Code: Select all
libvlc_media_player_play(myPlayer);
libvlc_media_player_set_pause(myPlayer,1);
then i tried to do register a callback to pausableChanged and emit a signal from it (i'm using Qt).
in slot (handler goes from main thread) i call libvlc_media_player_set_pause(myPlayer,1) assuming that now i can pause the playback,
but again, nothing happens.
Then i try to register a callback to playbackStarted. Doing the same and finally pause works. But another problem is that player changes the position during calls, most likely because of buffering.
The question is what the pausableChanged callback is for if pause called from it doesn't work.
Regards, Victor