Clarify what happens to track attributes when the source is detached/stopped

Hi

These changes are pretty much compatible with what Harald suggests in [1].

Whe have some attributes on MediaStreamTrack that one can consider being 
properties of the track's source, reflected on the track. We have text 
in the spec saying that two attributes must not change value when the 
source is detached

"
MediaStreamTrack attributes such as kind and label MUST NOT change 
values when the source is detached.
"

I think we should be this clear about all attributes on MediaStreamTrack.

I propose the following:

Unaffected by source state:
kind, id, label, enabled, readonly, remote

Affected by source state:
readyState (obviously :) )
muted (stopped or detached source -> muted: true)

We can move the "muted" attribute to the first section if people think 
it should be unaffected and that the readyState provides the appropriate 
information.

[1] 
https://lists.w3.org/Archives/Public/public-media-capture/2015Apr/0013.html

Received on Wednesday, 22 April 2015 09:58:33 UTC