On Feb 18, 2010, at 11:00 PM, Philip Jägenstedt wrote:
> On Fri, 19 Feb 2010 13:43:19 +0800, Eric Carlson <eric.carlson@apple.com> wrote:
>
>>
>> On Feb 17, 2010, at 9:49 PM, philipj@opera.com wrote:
>>
>>>
>>> What does enabled mean here? Since the MediaTracks API doesn't reflects
>>> the concept of groups, the mapping is open for debate. I think we should
>>> either reflect groups in some way, or we should simply expose all tracks
>>> in all groups (enabled or not) and setting .enabled=true on a track should
>>> implicitly disable the others in the same group.
>>>
>> We should definitely expose all tracks, whether or not they are in a group. We could expose group, but what could a script do with it?
>
> It would be good if a script can tell if enabling a track will disable others, so that it doesn't walk through the list and try to enable all tracks and is then surprised by the results. There is a workaround for <trackgroup><track> (look at the DOM tree), but what about embedded tracks?
>
Excellent point!
eric