这是indexloc提供的服务,不要输入任何密码
Skip to content

Better documentation of ended event #924

@eladalon1983

Description

@eladalon1983

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:

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 extend the desciption: "... Note that if the application itself stopped the track, by calling the stop() method, then this event will not be fired."

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions