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

LocalMediaStream.stop() and MediaStream.onended

From: Dominique Hazael-Massieux <dom@w3.org>
Date: Thu, 31 May 2012 15:45:44 +0200
Message-ID: <1338471944.11737.43.camel@cumulustier>
To: public-media-capture@w3.org
Hi,

While writing a test case for LocalMediaStream.stop this morning [1], I
discovered that when calling LocalMediaStream.stop(), the "ended" event
is not supposed to be triggered:
> A MediaStream object is said to be finished when all tracks belonging
> to the stream have ended. When this happens for any reason other than
> the stop() method being invoked, the user agent must queue a task

I wonder what's the intent behind special-casing stop() here?

Dom


1. http://w3c-test.org/media-capture/submitted/W3C/localstream-stop.html
Received on Thursday, 31 May 2012 13:46:42 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:14:59 GMT