I found out that I can force stereo by altering the html/streamingtest.js file in the function "onmessage: function(msg, jsep)" in line 154:
:
152 if(jsep) {
153 Janus.debug("Handling SDP as well...", jsep);
154 var stereo = true; // var stereo = (jsep.sdp.indexOf("stereo=1") !== -1);
155 // Offer from the plugin, let's answer
156 streaming.createAnswer(
While it works, it seems to be quite a hack. It seems like the SDP offered from the plugin should contain a line like:
"a=fmtp... stereo=1 ...", but doesn't.
However, I could not find out if I misconfigured the GStreamer pipeline, or the streaming plugin config, or if there is an issue in the streaming plugin, or in the demo JS code.
Has someone experienced something similar, or knows how to configure the setup correctly without adding this "hack" in the streaming demo JS code?
I used the following (slightly modified) GStreamer pipeline:gst-launch-1.0 -v \
osxaudiosrc device=60 ! \
audioresample quality=10 ! audio/x-raw, channels=2, rate=48000 ! \
opusenc audio-type=restricted-lowdelay bandwidth=fullband frame-size=60 bitrate=128000 ! \
rtpopuspay ! udpsink host=127.0.0.1 port=5002 \
Thanks in advance!