Unsolved [QMultiMedia] How do I stop the program flow while a video is being played?
-
Hello,
I'm currently working on a video player where the user can affect the story via eye tracking.
The problem is that the QMediaPlayer only plays the last video file because it does not stop the flow before the current video is finished.How can I solve this problem?
thanks -
@SnuggleKat What flow do you mean? How do you play the videos?
-
By flow I mean the procedure with all the branching of the program.
The first video is being played this way:QMediaPlayer* player = new QMediaPlayer; QVideoWidget* vw = new QVideoWidget; QRect rec = QApplication::desktop()->screenGeometry(); player->setVideoOutput(vw); player->setMedia(QUrl::fromLocalFile(link)); vw->setGeometry(0, 0, rec.width(), rec.height()); vw->show(); player->play();
-
@SnuggleKat And how do you play the next one?
-
This is dependent by what position the user is looking at.
There are 3 sectors the user can look at. E.g.If the eye tracking device detects a range of 0 - 0.48 video 1.1 will be played.
But this did not work. Now I just thought about creating a playlist which will be changed -
Hi,
And what code are you using to handle the next video that should be played ?