[HTML5] web audio and html5web audio
<! -- Audio can control the audio playing behavior through attribute settings: Attributes of Table 6-2 audio elements ------------------------------------------------------ attribute value description autoplay: Play the controls control immediately after the audio is ready, for example, you can play the loop audio on the page and then play the preload audio again. If "autoplay" is used, ignore the src url to play the audio url ---------------------------------------------------------- method of Table 6-3 audio element description addTextTrack () add a new text track canPlayType () to the audio to check whether the browser can play the specified audio type load () and reload the audio element play () to start playing the audio pause () pause the currently played audio -------------------------------------------------------- common events of Table 6-4 audio elements ------------------------------------------- ------------- Event Description: when the current canplay browser can play the audio, pause. When the audio is paused, play. When the audio has started or stopped, playing. When the audio is paused or stopped due to buffering, It is ready. SS when the browser is downloading the audio, volumechange when the volume has changed and the current playing position of timeupdate has changed ------------------------------------------------ --> <! DOCTYPE html>
Running result: