Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.7
-
None
Description
As title suggests, QMediaPlayer can (easily) be brought in a state where mediaStatus = QMediaPlayer::LoadedMedia while in the QMediaPlayer::PlayingState. According to the documentation this is a combination which is not allowed.
So far I've only confirmed this with qt 6.7 on linux with the ffmpeg backend. But I'm seeing the same symptoms in my app on android built with qt 6.6.
The behaviour can be reproduced by:
- Loading an mp3 file with QMediaPlayer
- Start playback --> mediaStatus will correctly be BufferedMedia after playback starts
- Seek to a different position in the audio file --> mediaStatus will now reproducibly change to LoadedMedia while playback continues at the new position
See attached qml file which allows to reproduce the issue: load an mp3 file, press play, skip to other position, watch how mediaStatus changes from "4" to "2" = LoadedMedia