Solved How to play remote webrtc stream (MediaStreamInterface) in Qt
-
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.
-
I found solution. The simple example here: https://webrtc.googlesource.com/src/+/master/examples/peerconnection/client/main_wnd.cc
-
I found solution. The simple example here: https://webrtc.googlesource.com/src/+/master/examples/peerconnection/client/main_wnd.cc