Re: What is mandatory in RTCSessionDescription

2015-05-19 23:50 GMT+02:00 Martin Thomson <martin.thomson@gmail.com>:
> On 19 May 2015 at 14:47, Iñaki Baz Castillo <ibc@aliax.net> wrote:
>> 2015-05-19 21:57 GMT+02:00 Martin Thomson <martin.thomson@gmail.com>:
>>> Am I missing something?
>>
>> Agreed.
>
> Clearly :)

Same for RTCIceCandidate:

----------------
The RTCIceCandidate() constructor takes an optional dictionary
argument, candidateInitDict, whose content is used to initialize the
new RTCIceCandidate object. If a dictionary key is not present in
candidateInitDict, the corresponding attribute will be initialized to
null. If the constructor is run without the dictionary argument, all
attributes will be initialized to null.
----------------

It seems to me that those attributes should be mandatory before the
object is *usable*, regardless they are passed in the dictionary
argument or manually set one by one.



-- 
Iñaki Baz Castillo
<ibc@aliax.net>

Received on Tuesday, 19 May 2015 21:58:28 UTC