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

Re: [webrtc-pc] Any reason not to use sequence<> in RTCTrackEvent?

From: Martin Thomson <martin.thomson@gmail.com>
Date: Sat, 12 Dec 2015 09:11:43 +1100
Message-ID: <CABkgnnWAYp6BST3djBSyKbQOWN-HctXgq5wg4V5XbxezbUZx7w@mail.gmail.com>
To: jan-ivar via GitHub <sysbot+gh@w3.org>
Cc: public-webrtc@w3.org
I thought that I had generated a PR that made this FrozenArray<>.
On Dec 12, 2015 6:53 AM, "jan-ivar via GitHub" <sysbot+gh@w3.org> wrote:

> jan-ivar has just created a new issue for
> https://github.com/w3c/webrtc-pc:
>
> == Any reason not to use sequence<> in RTCTrackEvent? ==
> Seems to me that http://w3c.github.io/webrtc-pc/#rtctrackevent should
> be:
>
> ````js
> [ Constructor (DOMString type, RTCTrackEventInit eventInitDict)]
> interface RTCTrackEvent : Event {
>     readonly    attribute RTCRtpReceiver   receiver;
>     readonly    attribute MediaStreamTrack track;
>     readonly    attribute sequence<MediaStream>    streams;
> };
> ```
>
> We don't use the `[]` syntax anywhere else, and AFAIK it's a rare
> WebIDL concept for when one wants to modify the array as an attribute,
>  which doesn't seem relevant here since we're `readonly`.
>
> Please view or discuss this issue at
> https://github.com/w3c/webrtc-pc/issues/435 using your GitHub account
>
>
Received on Friday, 11 December 2015 22:12:12 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:47 UTC