When a file is loaded into a QMediaPlayer instance QMediaPlayer it will not automatically buffer the file. MediaStatus remains NoMedia until you start playing the file using play() , only after which it will be BufferedMedia . I cannot find any way in the documentation to make the player buffer the file without playing it - is there a way to do this?
Now I plan to turn it off, play the file, then stop it again and turn it off, but it makes me feel dirty. Surely there is a better way to do this?
This is necessary, by the way, because I cannot get duration until the file is buffered, and I need duration to select position in the track to start playing from.
thanks
qt qmediaplayer
Thomas
source share