Skip to content

Questions regarding translation #27

@jensengar

Description

@jensengar

@legastero Can you provide some insight on the following?

  1. 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.

  2. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions