Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to detect Stream is not playing QMediaplayer
SansBlague last edited by
I am new, so sorry for bad english and bad programming skills.
I use QMediaplayer to play videos that i stream on localhost with vlc. When my url is good, nothing wrong and my application works well, but when my url is bador i don't stream the videos, my app freeze and i get this error: "DirectShowPlayerService::doSetUrlSource: Unresolved error code 80004005" if i try to do a "setmedia" on my mediaplayer to change url and get a good one
QMediaContent media(l_currentStream.getIPAddress()); _mediaPlayer->setVideoOutput(this); _mediaPlayer->setMedia(media); _mediaPlayer->play();
and it is the same if i try to dleete my mediaplayer and create another one with a new media.
thanks a lot