W3C home > Mailing lists > Public > public-media-capture@w3.org > October 2013

Re: Constraints as a separate interface

From: Jan-Ivar Bruaroey <jib@mozilla.com>
Date: Wed, 16 Oct 2013 17:01:38 -0400
Message-ID: <525EFEB2.1010107@mozilla.com>
To: Martin Thomson <martin.thomson@gmail.com>
CC: Jim Barnett <Jim.Barnett@genesyslab.com>, "public-media-capture@w3.org" <public-media-capture@w3.org>
On 10/16/13 4:46 PM, Martin Thomson wrote:
> On 16 October 2013 10:59, Jan-Ivar Bruaroey <jib@mozilla.com> wrote:
>> Unfortunately, MediaRecorder already inherits from EventTarget and webidl
>> doesn't allow multiple inheritance, so that one gets a little ugly.
> It does allow mixins using the "implements" keyword, which might suck,
> but could be used as a workaround.

So,

     MediaStreamTrack implements Constrainable;
     MediaRecorder implements Constrainable;

That's a lot nicer. :-)

TIL - Thanks!

.: Jan-Ivar :.
Received on Wednesday, 16 October 2013 21:02:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:20 UTC