Re: Issue 106: RTCRtpParameter defaults?

I am wondering if there isn't a relatively simple solution to this. 

a. Sender object.  On the sender, it seems possible to use Promises with send, as follows: 


partial interface RTCRtpSender : RTCStatsProvider {
Promise send (RTCRtpParameters parameters);
};

We can then require that the sender object fill in the RTCRtpParameters by the time the Promise is fulfilled.   getParameters can then be called to retrieve the RTCRtpParameters object. 

Yes, it is possible that dictionary elements could change over time, but I don't see why we need an event for that. 

For example, the SSRCs might change due to an SSRC conflict, but the application shouldn't need to deal with this explicitly. 


b. Receiver object.  Here, getParameters seems sufficient to me.  

There doesn't appear to be a good reason to have an event to tell the developer when RTCRtpParameters changes. The only relevant info that could be delivered is latching events and arrival of RTCP SDES packets (with CNAME info), etc. but this does not seem critical.

Received on Monday, 14 July 2014 20:14:48 UTC