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. How to play remote webrtc stream (MediaStreamInterface) in Qt
Forum Updated to NodeBB v4.3 + New Features

How to play remote webrtc stream (MediaStreamInterface) in Qt

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 1.1k 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.
  • NabiN Offline
    NabiN Offline
    Nabi
    wrote on last edited by
    #1

    I have an object stream - type webrtc MediaStreamInterface sent by the remote peer, but I don't know how to play that:

    void MyObserver::OnAddStream(rtc::scoped_refptr<MediaStreamInterface> stream) {
    stream.get()->GetAudioTracks();
    stream.get()->GetVideoTracks();
    }

    MediaStreamInterface can return audio and video tracks.
    Does Qt have any class or widget to play audio and video tracks?

    Or someone knows any libs to play that?

    Thanks.

    1 Reply Last reply
    0
    • NabiN Offline
      NabiN Offline
      Nabi
      wrote on last edited by
      #2

      I found solution. The simple example here: https://webrtc.googlesource.com/src/+/master/examples/peerconnection/client/main_wnd.cc

      1 Reply Last reply
      2

      • Login

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