레퍼런스 onended()

onended()

Calls a function when the audio/video reaches the end of its playback.

The element is passed as an argument to the callback function.

Note: The function won't be called if the media is looping.

예제

구문

onended(callback)

매개변수

callback

function to call when playback ends. The p5.MediaElement is passed as the argument.

Notice any errors or typos? Please let us know. Please feel free to edit src/dom/dom.js and open a pull request!

관련 레퍼런스