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

Re: Questions/Comments on Media Stream Recording

From: Adam Bergkvist <adam.bergkvist@ericsson.com>
Date: Thu, 23 May 2013 09:06:34 +0200
Message-ID: <519DBFFA.9020905@ericsson.com>
To: Frederick.Hirsch@nokia.com
CC: mandyam@quicinc.com, Jim.Barnett@genesyslab.com, public-media-capture@w3.org
On 2013-05-22 22:49, Frederick.Hirsch@nokia.com wrote:
> onstop, onerror and maybe onwarning events  could need access  to
> accessor to allow MediaStream termination if needed.
>

Regarding getting access to the stream being recorded (point 5 in 
original mail); this is already supported via the event model.

recorder.onstop = function (evt) {

   // find the stream via the event target (the recorder)
   var recStream = evt.target.stream;

   // or if you have a reference to the recorder you
   // can access it directly
   recStream = recorder.stream;

};

/Adam
Received on Thursday, 23 May 2013 07:07:02 UTC

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