Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

RTSP using QtMultimedia

$
0
0
Hello, I am creating a Qt application for decoding and viewing H.264-encoded RTSP streams. After browsing the web a bit, it seems like Phonon is capable of handling this. I am using Qt5, which seems to have replaced Phonon with QtMultimedia. When I create a simple test application, I am unable to view my RTSP stream. The application amounts to this: video_widget = new QVideoWidget(this); media_player = new QMediaPlayer(this); QString rtsp_url = QString("rtsp://12.34.567.890:8554/test"); media_player->setMedia(QUrl(rtsp_url)); media_player->setVideoOutput(video_widget); media_player->play(); Does QtMultimedia support RTSP streams? Substituting the RTSP URL with a file on my desktop will play the local file correctly, which leads me to believe that the above code is sound. Thank you

Viewing all articles
Browse latest Browse all 18427

Trending Articles