HTML5 video playback plug-in and html5 playback plug-in
First, push the artifact
JPlayer:Audio and video players based on HTML5/Flash
JPlayer is completely written in JavaScript.Free and open-source(MIT) jQuery multi-media library plug-in (now also a Zepto plug-in );
JPlayer allows you to quickly writeCross-platformWeb pages that support audio and video playback.
The rich APIs of jPlayer allow you to create a personalized multimedia application, so it is also supported and encouraged by more and more community members.
Official Website: www.jplayer.cn
English: www.jplayer.org
1. Prepare
Jquery.min.js?jquery.jplayer.min.js=jquery.jplayer.swf (download from the official website)
There is also an audio file
2. Code
<Html>
Appendix: audio files supported by HTML5
File Format media type
MP3 audio/mpeg
Ogg audio/ogg
Wav audio/wav
Different browsers have different support.