Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Playing udp stream using QMediaPlayer
Forum Updated to NodeBB v4.3 + New Features

Playing udp stream using QMediaPlayer

Scheduled Pinned Locked Moved Solved General and Desktop
udp streamqmediaplayerlinux
2 Posts 2 Posters 3.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gsharma
    wrote on 27 Nov 2017, 14:38 last edited by
    #1

    I have to write an application to play udp stream using QMediaPlayer and QVideoWidget. I am using these stuffs in my application as follow:

    QMediaPlayer *player = new QMediaPlayer(this);
    QMediaPlaylist *playlist = new QMediaPlaylist();
    QVideoWidget *videoWidget = new QVideoWidget(this);
    player->setPlaylist(playlist);
    player->setVideoOutput(videoWidget);
    playlist->addMedia(QUrl("udp://192.168.55.16:9001"));
    

    But it is not working Linux (Ubuntu 1604). However the same code working perfectly on windows with Leadtools and DirectShow. Further I am able to play
    RTSP stream on Linux.

    Please let me know why it is not working on Linux. GStreamer-1.0 is already installed on my system. Does it can be accomplish only by using QtGStreamer ?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bacat26
      wrote on 20 Apr 2018, 13:03 last edited by bacat26
      #2

      Hi @gsharma ,
      I see you solved your problem. I have similar problem. I use qt-5.10 and IP camera. I want to stream with rtsp. Also want to see at QMediaPlayer. Could you please help me. How did you solve problem. Also do you know tutorial about this.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved