Seek to a position before playing
Posted: 27 Jun 2015 06:43
I want to seek to a position before playing a video :
but it does not work and instead I used this code:
it now works but first plays the video (and shows some frames of the begining of the file) , is there any way to seek to a position before playing?
Code: Select all
player= new VlcMediaPlayer(instance);
player->setPosition(pos);
player->setTime(time);
player->play();
Code: Select all
player= new VlcMediaPlayer(instance);
player->play();
player->setPosition(pos);
player->setTime(time);