W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > December 2015

[mediacapture-main] Any reason not to use sequence<> in RTCTrackEvent?

From: jan-ivar via GitHub <sysbot+gh@w3.org>
Date: Fri, 11 Dec 2015 19:50:41 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issues.opened-121780070-1449863440-sysbot+gh@w3.org>
jan-ivar has just created a new issue for 
https://github.com/w3c/mediacapture-main:

== 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/mediacapture-main/issues/294 using your GitHub 
account
Received on Friday, 11 December 2015 19:50:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:27:28 UTC