PDA

View Full Version : QT accept udp link instead of local video file



joylamb
12th October 2015, 12:38
I am trying accept a udp video stream instead of a local video file. The code below is used to grab video from my local drive and upon running the program the video will load and play on the gui display.


QMediaPlayer *mediaplayer = new QMediaPlayer;
mediaplayer ->setMedia(QUrl::fromLocalFile("C:/user/video/demo.wmv"));
mediaplayer ->play();

Is there any way I can accept a udp video stream and plays it in the QMediaPlayer?

Please advice. Thank you.