The ended
event is fired when playback or streaming has stopped because the end of the media was reached or because no further data is available.
This event occurs in three related but unique contexts.
The ended
event is fired at <audio>
and <video>
when playback reaches the end of the media.
Specification
HTML5 media
Interface
`Event` (Should be a link)
Bubbles
No
Cancelable
No
Target
`HTMLMediaElement`
Default Action
None.
The ended
event is fired at media streams' tracks, which use the MediaStreamTrack
interface, when the track's source permanently stops sending data on the stream. There are various ways this can happen, including: …
Specification
Media Capture and Streams
Interface
`Event`
Bubbles
No
Cancelable
No
Target
`MediaStreamTrack`
Default Action
None.