h264 Streaming plugin, Failed to set remote offer sdp ERROR_CONTENT (mobile)

3,073 views
Skip to first unread message

Kaplan

unread,
Feb 24, 2018, 11:09:16 AM2/24/18
to meetecho-janus
Hi All,
I am getting DOMException: Failed to set remote offer sdp: Session error code: ERROR_CONTENT. Session error description: Failed to set remote video description send parameters..

This is on Janus master 0.3.0.  

This is only on mobile (android chrome browser v64, and mobile safari v11) both suppose to do h254 and used to work 
Sometimes it works, sometimes it does not... Works fine  on desktop version (Chrome / FF)

Kaplan

unread,
Feb 24, 2018, 11:23:20 AM2/24/18
to meetecho-janus
this is the JS command I use:

.screentest.createAnswer(
{
jsep: jsep,
media: { audioSend: false, videoSend: false },
success: function (jsep) {
console.log("streaming Got SDP!");
//Janus.debug(jsep);
var body = { "request": "start" };
sess.screentest.send({ "message": body, "jsep": jsep });

},
error: function (error) {
console.error("Error :",error)
}
});

Kaplan

unread,
Feb 24, 2018, 11:33:15 AM2/24/18
to meetecho-janus
Here is the SDP i get from Janus,,
setRemoteDescription

type: offer, sdp: v=0
o=- 1519489577252874 1 IN IP4 192.198.84.46
s=Mountpoint 8008806686943958
t=0 0
a=group:BUNDLE video
a=msid-semantic: WMS janus
m=video 9 UDP/TLS/RTP/SAVPF 100
c=IN IP4 192.198.84.46
a=sendonly
a=mid:video
a=rtcp-mux
a=ice-ufrag:GiMG
a=ice-pwd:TnrGPPuwmr6QPG4SvHr1ys
a=ice-options:trickle
a=fingerprint:sha-256 07:42:75:D0:88:15:74:81:97:C6:7D:B5:1E:9D:DF:49:FB:04:56:15:E5:FD:9B:43:40:D7:79:20:E5:CA:CC:D6
a=setup:actpass
a=rtpmap:100 H264/90000
a=fmtp:100 profile-level-id=42e01f;packetization-mode=1
a=rtcp-fb:100 nack
a=rtcp-fb:100 goog-remb
a=ssrc:3372350822 cname:janusvideo
a=ssrc:3372350822 msid:janus janusv0
a=ssrc:3372350822 mslabel:janus
a=ssrc:3372350822 label:janusv0
a=candidate:1 1 udp 2013266431 __ip_removed_by_me 15617 typ host
a=end-of-candidates


On Saturday, February 24, 2018 at 11:09:16 AM UTC-5, Kaplan wrote:

Mirko Brankovic

unread,
Feb 24, 2018, 12:54:41 PM2/24/18
to meetecho-janus
This is sendonly answer, swas offer recvonly from client?

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janus+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kaplan

unread,
Feb 24, 2018, 1:43:39 PM2/24/18
to meetecho-janus
sorry, this is for a video watch command on a streaming mountpoint. yes recv only, i posted my JS command above. The error happens while creating the answer to janus.. works fine on the desktop versions.
The client errors with the eror I posted, there is no SDP from client on the chrome://internals. :(

To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.

Kaplan

unread,
Feb 24, 2018, 3:49:01 PM2/24/18
to meetecho-janus
SOLVED!!!

I was creating the RTP streaming plugin endpoint using:
.videortpmap="H264/90000";
.videofmtp="profile-level-id=42e01f;packetization-mode=1";

I copied that from this google group somewhere, and it used to work...
After I remove that profile-level-id, abd let janus use the default, the SDP becomes:
a=fmtp:100 profile-level-id=420010;level-asymmetry-allowed=0;packetization-mode=1

and it seems to work on mobile...

Kaplan

unread,
Feb 24, 2018, 5:05:38 PM2/24/18
to meetecho-janus

hopefully this will save a few hours to somebody, mobile chrome does not support h264 on versions 64 and under: https://github.com/meetecho/janus-gateway/issues/1017

On Saturday, February 24, 2018 at 11:09:16 AM UTC-5, Kaplan wrote:
Reply all
Reply to author
Forward
0 new messages