Detecting the end of an MP4 [closed]

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm using Linux Mint 19, writing in C++ with the latest Qt Creator, installed with the offline downloader.



I've made a QMediaPlayer and a QVidoeWidget to play MP4 videos. Works fine. But when the video ends the screen goes black and I can find no way to return control to the main program. How can I detected when an MP4 has finished?



Putting qDebug() << player->state(); just after player->play() triggers once, saying the player is playing, but doesn't get triggered again.










share|improve this question















closed as off-topic by Jeff Schaller, G-Man, RalfFriedl, msp9011, Archemar Dec 6 at 7:50


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Requests for learning materials (tutorials, how-tos etc.) are off topic. The only exception is questions about where to find official documentation (e.g. POSIX specifications). See the Help Center and our Community Meta for more information." – G-Man, RalfFriedl, msp9011
If this question can be reworded to fit the rules in the help center, please edit the question.








  • 3




    You probably want StackOverflow, and they're probably going to want code.
    – bgregs
    Dec 5 at 18:06










  • loc.gov/preservation/digital/formats/fdd/fdd000037.shtml#specs may be helpful.
    – K7AAY
    Dec 5 at 18:29














up vote
0
down vote

favorite












I'm using Linux Mint 19, writing in C++ with the latest Qt Creator, installed with the offline downloader.



I've made a QMediaPlayer and a QVidoeWidget to play MP4 videos. Works fine. But when the video ends the screen goes black and I can find no way to return control to the main program. How can I detected when an MP4 has finished?



Putting qDebug() << player->state(); just after player->play() triggers once, saying the player is playing, but doesn't get triggered again.










share|improve this question















closed as off-topic by Jeff Schaller, G-Man, RalfFriedl, msp9011, Archemar Dec 6 at 7:50


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Requests for learning materials (tutorials, how-tos etc.) are off topic. The only exception is questions about where to find official documentation (e.g. POSIX specifications). See the Help Center and our Community Meta for more information." – G-Man, RalfFriedl, msp9011
If this question can be reworded to fit the rules in the help center, please edit the question.








  • 3




    You probably want StackOverflow, and they're probably going to want code.
    – bgregs
    Dec 5 at 18:06










  • loc.gov/preservation/digital/formats/fdd/fdd000037.shtml#specs may be helpful.
    – K7AAY
    Dec 5 at 18:29












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm using Linux Mint 19, writing in C++ with the latest Qt Creator, installed with the offline downloader.



I've made a QMediaPlayer and a QVidoeWidget to play MP4 videos. Works fine. But when the video ends the screen goes black and I can find no way to return control to the main program. How can I detected when an MP4 has finished?



Putting qDebug() << player->state(); just after player->play() triggers once, saying the player is playing, but doesn't get triggered again.










share|improve this question















I'm using Linux Mint 19, writing in C++ with the latest Qt Creator, installed with the offline downloader.



I've made a QMediaPlayer and a QVidoeWidget to play MP4 videos. Works fine. But when the video ends the screen goes black and I can find no way to return control to the main program. How can I detected when an MP4 has finished?



Putting qDebug() << player->state(); just after player->play() triggers once, saying the player is playing, but doesn't get triggered again.







video c++






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 5 at 18:24









Rui F Ribeiro

38.6k1479128




38.6k1479128










asked Dec 5 at 17:29









Hooder Hooder

191




191




closed as off-topic by Jeff Schaller, G-Man, RalfFriedl, msp9011, Archemar Dec 6 at 7:50


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Requests for learning materials (tutorials, how-tos etc.) are off topic. The only exception is questions about where to find official documentation (e.g. POSIX specifications). See the Help Center and our Community Meta for more information." – G-Man, RalfFriedl, msp9011
If this question can be reworded to fit the rules in the help center, please edit the question.




closed as off-topic by Jeff Schaller, G-Man, RalfFriedl, msp9011, Archemar Dec 6 at 7:50


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Requests for learning materials (tutorials, how-tos etc.) are off topic. The only exception is questions about where to find official documentation (e.g. POSIX specifications). See the Help Center and our Community Meta for more information." – G-Man, RalfFriedl, msp9011
If this question can be reworded to fit the rules in the help center, please edit the question.







  • 3




    You probably want StackOverflow, and they're probably going to want code.
    – bgregs
    Dec 5 at 18:06










  • loc.gov/preservation/digital/formats/fdd/fdd000037.shtml#specs may be helpful.
    – K7AAY
    Dec 5 at 18:29












  • 3




    You probably want StackOverflow, and they're probably going to want code.
    – bgregs
    Dec 5 at 18:06










  • loc.gov/preservation/digital/formats/fdd/fdd000037.shtml#specs may be helpful.
    – K7AAY
    Dec 5 at 18:29







3




3




You probably want StackOverflow, and they're probably going to want code.
– bgregs
Dec 5 at 18:06




You probably want StackOverflow, and they're probably going to want code.
– bgregs
Dec 5 at 18:06












loc.gov/preservation/digital/formats/fdd/fdd000037.shtml#specs may be helpful.
– K7AAY
Dec 5 at 18:29




loc.gov/preservation/digital/formats/fdd/fdd000037.shtml#specs may be helpful.
– K7AAY
Dec 5 at 18:29















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
zUVNKr0 pMdulVl 0JrjwOizox73OztE08rH1SvHhTHT6i4kf if5Y0v0b4,S,m
nn1EIqPUzI7ew6VMIi,m1l k

Popular posts from this blog

How to check contact read email or not when send email to Individual?

How many registers does an x86_64 CPU actually have?

Displaying single band from multi-band raster using QGIS