finish
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
("finish", () => void): this;
Emitted when the audio has finished playing.
Returns
Section titled “Returns”this
Handler Function
Section titled “Handler Function”When the finish
event is fired, attached handler functions are called with no arguments.
Example
Section titled “Example”myAudio.on("finish", audioFinished);
function audioFinished() { //code to run when the myAudio audio is finished}