Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Mandatory "kind" in RTCRtpReceiver constructor #141
If done, the interface would look like this:
[Constructor(DOMString kind, RTCDtlsTransport transport, optional RTCDtlsTransport rtcpTransport)]
Not that "readonly attribute MediaStreamTrack track" is also used in the WebRTC 1.0 RTCRtpReceiver definition.
What would be the advantage of supplying it?
On Mon, Aug 4, 2014 at 9:12 PM, aboba email@example.com wrote:
Here is a proposed resolution:
In Section 9.7.1, add the following text to the explanation of RTCRtpCodecParameters.name:
In Section 7.3.2, add the following explanatory text to "receive":
After receive() returns, track is set, and the value of track.kind is determined based on the kind of the codecs provided in parameters.codecs. If all the codecs are of a single kind then track.kind is set to that kind; if the kind differs between codecs, then track.kind is set to "all".