📜  控制音频javascript代码示例

📅  最后修改于: 2022-03-11 15:03:51.598000             🧑  作者: Mango

代码示例1
var audio = new Audio("folder_name/audio_file.mp3");
audio.currentTime = 0;    // Set audio play time from the beginning of audio
audio.play();            // start playing audio
audio.pause();            // pause audio