webrtcbin only receives single track from browser

Soebirk, Thorsten Nordholm Thorsten.Sobirk at itelligence.dk
Thu Apr 30 11:25:06 UTC 2020


Thanks Jan.

Wow! Very simple fix. It works now.

/ Thorsten

From: Jan Schmidt [mailto:jan at widgetgrove.com.au] 
Sent: 30 April 2020 12:48
To: Discussion of the development of and with GStreamer; Soebirk, Thorsten Nordholm
Subject: Re: webrtcbin only receives single track from browser

EXTERNAL MAIL:  
Hi,
On 30/4/20 7:34 pm, Soebirk, Thorsten Nordholm wrote:
I am working on an application that should receive both audio and video from a browser using webrtcbin. My application is modelled on WebrtcSendRecv.java (https://github.com/centricular/gstwebrtc-demos/blob/master/sendrecv/gst-java/src/main/java/WebrtcSendRecv.java), except that it is receive-only and it works in passive mode (receives a call by waiting for an offer, rather than making a call by sending an offer).
 
Things work fine, as long as the browser sends only an audio track or only a video track. But when the browser sends both audio and video, my application receives only one of the tracks. Which track the application "sees" depends on the order they are added by the browser, i.e. the order of RTCPeerConnection.addTrack(.) calls. The first track added by the browser is the track my application receives. Only one callback to onIncomingStream() and onIncomingDecodebinStream() are received.
Set the bundle-policy on webrtcbin - bundle-policy=max-bundle.
Cheers,
Jan.
 
I can see in the browser (chrome://webrtc-internals/) that it is streaming both audio and video, and I have had essentially the same browser application working with a different server implementation (Python aiortc), so I am 99% certain that the browser JS is working correctly.
 
My assumption is that I am missing something in my code, but I haven't been able to figure out what. Hope someone can offer some advice.
 
I am using GStreamer 1.16.2.
 
/ Thorsten


_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
 


More information about the gstreamer-devel mailing list