Html5-video tags and audio tags

Source: Internet
Author: User
Tags rewind

Video tags and audio tags
<!doctype html><html lang="ZH-CN">    <head>        <meta charset="Utf-8" />        <title>Video tags and audio tags</title>    <head>    <body>        <h2>Use of video tags</H2>        <!--<video src= "Kobe.mp4" controls= "Controls" > your broken browser can retire, quickly upgrade it! </video>        <!--<video controls width= "500px" AutoPlay loop poster= "Dog.jpg" > <source src= "kobe.mp4" type        = "Video/mp4"/> <source src= "Movie.ogg" type= "Video/ogg"/> Your broken browser can retire, quickly upgrade it! </video>        <h2>APIs using the video tag</H2>        <video src="Kobe.mp4" controls= "controls" id=" Video ">Your broken browser can retire, quickly upgrade it!</video>        <br/>        <input type="button" value="Play" onclick ="PlayVideo ()" />&nbsp;<input type="button" value="Stop" onclick=" Stopvideo () " />&nbsp;<input type="button" value="Fast forward 10 seconds" onclick ="forward ()" />&nbsp;<input type="button" value="Rewind 10 Seconds" onclick="Back () " />&nbsp;<br/>        <input type="button" value="Shut Up" onclick ="Shutup (This)" />&nbsp;<input type="button" value="Acceleration x2" onclick="Fast ( ) " />&nbsp;<input type="button" value="Deceleration x2" onclick= "Slow ()" />&nbsp;<input type="button" value="Normal speed" onclick=" Normal () " />&nbsp;<br/>        <input type="button" value="Louder" onclick ="Up ()" />&nbsp;<input type="button" value="Whisper " onclick="Down () " />&nbsp;<script>            varVideo=document.getelementbyid ("Video");//Play Video             function playvideo(){Video.play (); }//Stop video             function stopvideo(){Video.pause (); }//Fast forward 10 seconds             function forward(){video.currenttime+=Ten; }//Rewind 10 seconds             function back(){video.currenttime-=Ten; }//Mute             function shutup(obj){                if(video.muted) {video.muted=false; Obj.value="Shut up."; }Else{video.muted=true; Obj.value="Speak"; }            }//Acceleration x2             function fast(){Video.playbackrate=2;//default playback speed is 1}//Deceleration x2             function slow(){Video.playbackrate=1/2; }//Normal speed             function normal(){Video.playbackrate=1; }//Speak louder.             function up(){video.volume+=0.1;//The range of sound values is 0-1}// Keep your voice down.             function down(){video.volume-=0.1;//The range of sound values is 0-1}</script>        <h2>Use of audio tags</H2>        <audio src="Wow.mp3" controls>Your broken browser can retire, quickly upgrade it!</Audio>    </body></html> 

Html5-video tags and audio tags

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.