Why QMediaPlayer::stop will replay the video?
Unsolved
General and Desktop
-
Hi
I am using Qt5.12.11 on Windows 10 with VS2017
today, I found a very interesting thing. when I click the stop button which will call the QMediaPlayer::stop, the QMediaPlayer will play the video again if the QMediaPlayer is on QMediaPlayer::StoppedState. Does this on purpose? But the document just mentioned stop the video. if the QMediaPlayer::stop should just stop the video, Why QMediaPlayer::stop will replay the video?
[slot] void QMediaPlayer::stop() Stop playing, and reset the play position to the beginning.
-
Hi,
Might be a silly question but are you sure you are calling stop twice ?
Since you don't give details, you could be using a single start/stop button.