@legastero Can you provide some insight on the following?
-
Here: https://github.com/otalk/sdp-jingle-json/blob/master/lib/tojson.js#L20 it looks like the port is getting changed? I'm seeing something like m=audio 9 ... (from the offer) be changed to m=audio 1 .... Is there a reason for that? I would think the goal would be to convert sdp to json, and be able to get the original sdp back when converting the json back to sdp.
-
Here: https://github.com/otalk/sdp-jingle-json/blob/master/lib/tosdp.js#L55 It looks like it's basically hard coding the sdp for data channels but this is blowing up for me in chrome with the following error:
"Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to parse SessionDescription. m=application 1 DTLS/SCTP Expects at least 4 fields."
The sdp being generated for the offer looks like
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
but what's being received looks like this:
m=application 1 DTLS/SCTP
I assume this is a chrome change of some sort because this used to not be a problem. I'm also seeing issues in firefox:
Failed to parse SDP: SDP Parse Error on line 74: No sctp port specified in m= media line, parse failed.
Can you weigh in on these issues?
@legastero Can you provide some insight on the following?
Here: https://github.com/otalk/sdp-jingle-json/blob/master/lib/tojson.js#L20 it looks like the port is getting changed? I'm seeing something like
m=audio 9 ...(from the offer) be changed tom=audio 1 .... Is there a reason for that? I would think the goal would be to convert sdp to json, and be able to get the original sdp back when converting the json back to sdp.Here: https://github.com/otalk/sdp-jingle-json/blob/master/lib/tosdp.js#L55 It looks like it's basically hard coding the sdp for data channels but this is blowing up for me in chrome with the following error:
The sdp being generated for the offer looks like
but what's being received looks like this:
I assume this is a chrome change of some sort because this used to not be a problem. I'm also seeing issues in firefox:
Can you weigh in on these issues?