Hi all,
I’m still struggling to get video to play properly in my QWidget-based window, which is then embedded into a QDeclarativeView. When I write a basic program which doesn’t use QDeclarativeView, i.e. where the mainWindow is simply a QWidget-based window, everything works as expected, and the video plays correctly. However, in my QDeclarativeView-based code, when I’ve loaded the video into the QMediaPlayer, I get both “LoadedMedia” and “BufferedMedia” state changes through the mediaStateChanged signal, but then the state changes to “UnknownMediaStatus”.
Then, I get printed to the console: “handleSessionEvent: serious error = -1072875802” (I don’t know who or what prints this). Finally, through the error() signal, I get the “Media session serious error.” message. QMediaPlayer::error() returns QMediaPlayer::ResourceError at that point.
Any idea what could be the problem here? My first guess is that I have to rewrite my application such that the player is no longer embedded into a QDeclarativeView, although I would like to avoid that if possible.
Regards,
Daniel
↧