Re: Proposal for output device selection

On 2013-08-14 01:48, Justin Uberti wrote:
>     Also (pedantic): is there a rationale for choosing properties (like
>     sinkId here) over get/set methods such as MediaStream getVideoTracks()?
>
>
> I didn't see much precedent for setter functions in the HTML5 DOM; for
> example, you set the source of a HTMLMediaElement via element.src = foo.

getVideoTracks() is a method since we want it to return a new 
independent array (or sequence) every time it's called. As Justin says, 
properties are otherwise the common pattern to expose details of an object.

/Adam

Received on Thursday, 15 August 2013 05:06:54 UTC