1. scenario: If I only call libvlc_media_player_set_position (or libvlc_media_player_set_time), it seems like it goes to the position. But vlc stops sending frame received callbacks(in other words,player freezes) until it reaches the same(or next) frame before the libvlc_media_player_set_position function called.
Code: Select all
counter = 0;
while (true)
{
sleep(40); //25 hz
++counter;
if(counter % 100 = 0)
{// assuming current_position > 0.1f
libvlc_media_player_set_position(p_mi, 0.1f);
}
}
Code: Select all
counter = 0;
while (true)
{
sleep(40); //25 hz
++counter;
if(counter % 100 = 0)
{// assuming current_position > 0.1f
libvlc_media_player_stop(p_mi);
libvlc_media_player_play(p_mi);
libvlc_media_player_set_position(p_mi, 0.1f);
}
}
It already feels wrong to first restarting (stop + play) video for seeking. Am I missing something?
(By the way, it's the same question at http://stackoverflow.com/questions/3426 ... g-backward)
Thanks in advance, Gokhan.