Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow)
- {
- ui->setupUi(this);
- QVideoWidget *_vw = new QVideoWidget;
- QMediaPlayer *_player = new QMediaPlayer(ui->cameraWidget);
- ui->gridLayout_2->addWidget(_vw);
- _player->setVideoOutput(_vw);
- const QUrl url = QUrl("rtsp://192.168.200.102:5554/playlist.m3u");
- const QNetworkRequest requestRtsp(url);
- _player->setMedia(requestRtsp);
- _player->play();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement