Наши волонтёры ещё не перевели данную статью на Русский. Присоединяйтесь к нам и помогите сделать эту работу!
Вы можете также прочитать эту статью на English (US).
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:
- Elements based upon
endedwhen playback of the media reaches the end of the media.
- Media streams' tracks, which are based on the
endedwhen the track's source permanently stops sending data on the stream. There are various ways this can happen, including:
- There is no more data left to send.
- The user revoked the permissions needed for the data to be sent.
- The hardware generating the source data has been removed or ejected.
- A remote peer has permanently stopped sending data; pausing media does not generate an
- A Web Audio API node has stopped playing, either because it's reached a predetermined stop time, the full duration of the audio has been performed, or because the entire buffer has been played. See
- HTML5 media, Media Capture and Streams and Web Audio API
- Default Action
While this event is defined in more than one specification, at this time they specify this event identically, so we have documented them as if they were one. If at some point that changes, the documentation will be revised.
||The event target (the topmost target in the DOM tree).|
||The type of event.|
||Whether the event normally bubbles or not.|
||Whether the event is cancellable or not.|