PDA

View Full Version : QMediaplayer setposition is wrong



oldkkk2008
11th March 2013, 09:48
I want a video play from 20 second to 30 second position and loop in it.
after mediaplayer->play() I call mediaplayer->setPosition(20*1000), but player still play from 0.
When I can call setPosition?

wysota
11th March 2013, 10:58
You can only change the position after the video has started playing. Calling play() does not actually start it play but only schedules a play.