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:
function to call when playback ends. The p5.MediaElement
is passed as the argument.
This page is generated from the comments in src/dom/dom.js . Please feel free to edit it and submit a pull request!