Home > AI > Language > Javascript >

audio

create an audio object

const audioObject = new Audio(audio source);
audioElement.play();
audioElement.pause();

audioElement.currentTime;
audioElement.ended;
audioElement.duration;

Leave a Reply