W3C home > Mailing lists > Public > public-webrtc@w3.org > November 2012

Re: [ACTION-59] Introduce lookup by id structures for streams and tracks.

From: Adam Bergkvist <adam.bergkvist@ericsson.com>
Date: Tue, 6 Nov 2012 11:14:52 +0100
Message-ID: <5098E31C.1090206@ericsson.com>
To: Martin Thomson <martin.thomson@gmail.com>
CC: Harald Alvestrand <harald@alvestrand.no>, "public-webrtc@w3.org" <public-webrtc@w3.org>
On 2012-11-05 16:59, Martin Thomson wrote:
> On 5 November 2012 14:12, Harald Alvestrand <harald@alvestrand.no> wrote:
>> I like simplicity.
>> I'd like to introduce three operators on a MediaStream:
>>
>> sequence<MediaStreamTrack> videoTracks()
>> sequence<MediaStreamTrack> audioTracks()
>> sequence<MediaStreamTrack> allTracks()
>
> That would be my preference.
>
> Add a "MediaStreamTrack? getTrackById(DOMString id)" and we're good.
>

There's more to it. We need to move the 
add(MediaStreamTrack)/remove(...) functions and the event handler 
attributes as well.

I think the track lists should be attributes on MediaStream similar to 
the track lists on the media elements; it's not possible with sequences. 
A sequence is also about order which is the thing we want to move away from.

/Adam
Received on Tuesday, 6 November 2012 10:15:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 6 November 2012 10:15:20 GMT