- From: Adam Bergkvist <adam.bergkvist@ericsson.com>
- Date: Thu, 15 Aug 2013 07:06:29 +0200
- To: Justin Uberti <juberti@google.com>
- CC: Sam Dutton <dutton@google.com>, Dominique Hazael-Massieux <dom@w3.org>, Stefan Håkansson LK <stefan.lk.hakansson@ericsson.com>, "public-media-capture@w3.org" <public-media-capture@w3.org>, Harald Alvestrand <hta@google.com>, Victoria Kirst <vrk@google.com>, "Tommy Widenflycht (ᛏᚮᛘᛘᚤ)" <tommyw@google.com>, Tommi Gunnarsson <tommi@google.com>
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