Detecting the end of an MP4 [closed]
Clash 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.
video c++
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
add a comment |
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.
video c++
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
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
add a comment |
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.
video c++
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++
video c++
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
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
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
add a comment |
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
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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