-
Notifications
You must be signed in to change notification settings - Fork 34
Datachannel: Port Numbers #227
Description
From Robin Raymond:
We have an issue with the DataChannel API. There is we have no way to specify the SCTP port number associated with the data channel (but we do have a stream identifier) It is possible to make arbitrary assumptions about port numbers, such as assuming 5000, 5001,… based on “signalling”, i.e. SDP, and then the stream identifier is assigned to the port number to use (where multiple streams can be muxed into a single port).
We have two options:
-
programmer must create an SCTP transport PER port then data channels are assigned to SCTP transport [thus DTLS transport would be a 1 to many SCTP transport relationship]… OR
-
we add an optional “port” number to the data channel so the data channel can go over a specified SCTP port number [and if not specified, then the system assigns one].
The trouble with option #2 is that the data channel API will include an additional param vs WebRTC 1.0 (where the port number is inside the SDP).