[HTML5] web audio and html5web audio

Source: Internet
Author: User

[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:

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.