LocalMediaStream.stop() and MediaStream.onended

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 UTC