W3C home > Mailing lists > Public > public-webrtc@w3.org > May 2015

Re: What is mandatory in RTCSessionDescription

From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Tue, 19 May 2015 23:57:37 +0200
Message-ID: <CALiegf=qb9uUDUKaSbcL=87vv0TMKmyeCy1ETTK4L1D73FxdXQ@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
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
Received on Tuesday, 19 May 2015 21:58:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:18:06 UTC