Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!

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 two related but unique contexts:

  • Elements based upon HTMLMediaElement (<audio> and <video>) fire ended when playback of the media reaches the end of the media.
  • Media strams' tracks, which are based on the MediaStreamTrack interface, fire ended when 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 ended event.

General info

Specification
HTML5 media and Media Capture and Streams
Interface
Event
Bubbles
No
Cancelable
No
Target
Element
Default Action
None.

While this event is defined in two specifications, at this time both 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.

Properties

Property Type Description
target Read only EventTarget The event target (the topmost target in the DOM tree).
type Read only DOMString The type of event.
bubbles Read only Boolean Whether the event normally bubbles or not
cancelable Read only Boolean Whether the event is cancellable or not?

ドキュメントのタグと貢献者

 このページの貢献者: Sheppy, teoli, ethertank, louisremi
 最終更新者: Sheppy,