[mediacapture-main] Better documentation of ended event (#924)

eladalon1983 has just created a new issue for https://github.com/w3c/mediacapture-main:

== Better documentation of ended event ==
[MediaStreamTrack.ended](https://www.w3.org/TR/mediacapture-streams/#event-mediastreamtrack-ended) reads:
> The MediaStreamTrack object's source will no longer provide any data, either because the user revoked the permissions, or because the source device has been ejected, or because the remote peer permanently stopped sending data.

This fails to mention the caveat [here](https://www.w3.org/TR/mediacapture-streams/#life-cycle):
> When a MediaStreamTrack track ends **for any reason other than the stop() method being invoked**
> ...
> 4. Fire an event named ended at the object.

Possibly we could reword as "... Note that if the application itself stopped the track, by calling the stop() method, then this event will not be fired."

Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/924 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 11 January 2023 10:43:48 UTC