MediaPlayer often does not play video
Unsolved
QML and Qt Quick
-
I have this simple code:
ApplicationWindow { width: 1920; height: 1080 visible: true visibility: "FullScreen" MediaPlayer { id: mediaPlayer videoOutput: videoOutput source: "file:///home/user/test.mov" onMediaStatusChanged: { if (mediaPlayer.mediaStatus == MediaPlayer.LoadedMedia) play(); } onErrorOccurred: { console.log(mediaPlayer.errorString) } onPlaybackStateChanged: { console.log(mediaPlayer.playbackState) } } VideoOutput { id: videoOutput anchors.fill: parent } }
Usually it works, but sometimes (or often...) it does not play the video. I always get
1
asplaybackState
and never get an error.
When it happens, it does not play the video for several consecutive runs. Then, it come back and works as expected....How to understand why it does not play the video?
Qt 6.2.0 and Ubuntu 20.04. -
Hi,
Is it always the same video that triggers this ?
-
I would first update to 6.2.1 next, are these files stored in a specific location ?
Do you have the same issue if you play them with GStreamer directly ?