i'm trying to capture mjpeg stream arriving from a ip camera and display the "video" using QMediaPlayer and QVideoWidget.
The code is very basic:
mediaPlayer = new QMediaPlayer;
connect(mediaPlayer, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus)), this, SLOT(currentMediaStatus(QMediaPlayer::MediaStatus)));
Unfortunately the one and only status i can receive is QMediaPlayer::LoadingMedia with QMediaPlayer::StoppedState .
The videoWidget doesn't display anything.
Does QMediaPlayer support mjpeg at all?
Although i do not receive neither QMediaPlayer::InvalidMedia status nor any other error.
Of course i could use QDesktopServices to display the stream with a web browser but i'd prefer using my own video widget...
Env: Qt5.0.1 mingw47, Windows7 x64