[webrtc-pc] Pull Request: Improve definition of required fields in RTCRtpParameters

soareschen has just submitted a new pull request for https://github.com/w3c/webrtc-pc:

== Improve definition of required fields in RTCRtpParameters ==
Fixes #1493.

This PR attempts to clarify which fields are required in the `RTCRtpParameters` dictionary returned from `getParameters()`. I have also factor out the `transactionId` and `degradationPreference` fields to a new dictionary `RTCRtpSenderParameters`, since these two fields are required only for `RTCRtpSender`.

It would be great if someone with more experience on RTP parameters can verify whether some of the fields marked required make sense. Note that we'd also have to consider the case when no SDP has been set yet, e.g. `pc.addTransceiver().sender.getParameters()` before any offer is generated.

See https://github.com/w3c/webrtc-pc/pull/1610

Received on Wednesday, 20 September 2017 08:42:18 UTC