- From: Adam Bergkvist <adam.bergkvist@ericsson.com>
- Date: Tue, 6 Nov 2012 11:14:52 +0100
- 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 UTC