16、使用jQuery的html5player播放器,进行播放
2016-09-11 14:10
423 查看
<!-- Website Design By: www.happyworm.com --> <title>Demo : jPlayer as a video playlist player</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="js/skin/blue.monday/jplayer.blue.monday.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/lib/jquery.min.js"></script> <script type="text/javascript" src="js/js/jplayer/jquery.jplayer.min.js"></script> <script type="text/javascript" src="js/js/add-on/jplayer.playlist.min.js"></script> <script type="text/javascript"> //<![CDATA[ $(document).ready(function(){ new jPlayerPlaylist({ jPlayer: "#jquery_jplayer_1", cssSelectorAncestor: "#jp_container_1" }, [ { title:"Big Buck Bunny Trailer", artist:"Blender Foundation", free:true, m4v: "media/1.mp4", ogv: "media/1.mp4", webmv: "media/1.mp4", poster:"http://www.jplayer.org/video/poster/Big_Buck_Bunny_Trailer_480x270.png" }, { title:"Finding Nemo Teaser", artist:"Pixar", m4v: "media/1.mp4", ogv: "media/1.mp4", webmv: "media/1.mp4", poster: "http://www.jplayer.org/video/poster/Finding_Nemo_Teaser_640x352.png" }, { title:"Incredibles Teaser", artist:"Pixar", m4v: "media/1.mp4", ogv: "media/1.mp4", webmv: "media/1.mp4", poster: "http://www.jplayer.org/video/poster/Incredibles_Teaser_640x272.png" } ], { swfPath: "../../js/jplayer", supplied: "webmv, ogv, m4v", useStateClassSkin: true, autoBlur: false, smoothPlayBar: true, keyEnabled: true }); }); //]]> </script> </head> <body> <div id="jp_container_1" class="jp-video jp-video-270p" role="application" aria-label="media player"> <div class="jp-type-playlist"> <div id="jquery_jplayer_1" class="jp-jplayer"></div> <div class="jp-gui"> <div class="jp-video-play"> <button class="jp-video-play-icon" role="button" tabindex="0">play</button> </div> <div class="jp-interface"> <div class="jp-progress"> <div class="jp-seek-bar"> <div class="jp-play-bar"></div> </div> </div> <div class="jp-current-time" role="timer" aria-label="time"> </div> <div class="jp-duration" role="timer" aria-label="duration"> </div> <div class="jp-controls-holder"> <div class="jp-controls"> <button class="jp-previous" role="button" tabindex="0">previous</button> <button class="jp-play" role="button" tabindex="0">play</button> <button class="jp-next" role="button" tabindex="0">next</button> <button class="jp-stop" role="button" tabindex="0">stop</button> </div> <div class="jp-volume-controls"> <button class="jp-mute" role="button" tabindex="0">mute</button> <button class="jp-volume-max" role="button" tabindex="0">max volume</button> <div class="jp-volume-bar"> <div class="jp-volume-bar-value"></div> </div> </div> <div class="jp-toggles"> <button class="jp-repeat" role="button" tabindex="0">repeat</button> <button class="jp-shuffle" role="button" tabindex="0">shuffle</button> <button class="jp-full-screen" role="button" tabindex="0">full screen</button> </div> </div> <div class="jp-details"> <div class="jp-title" aria-label="title"> </div> </div> </div> </div> <div class="jp-playlist"> <ul> <!-- The method Playlist.displayPlaylist() uses this unordered list --> <li> </li> </ul> </div> <div class="jp-no-solution"> <span>Update Required</span> To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>. </div> </div> </div> </body>
结果是如下这个样子
![](https://images2015.cnblogs.com/blog/781396/201609/781396-20160911140902253-49914198.png)
相关文章推荐
- 16、使用jQuery的html5player播放器,进行播放
- 使用html5进行视频播放
- 使用jQuery播放/暂停 HTML5视频
- HTML5 audio标签使用js进行播放控制实例
- 使用jQuery播放/暂停 HTML5视频
- 使用jQuery播放/暂停 HTML5视频
- jquery-ui 的 主题 选择什么颜色? 建议使用html5 的标准进行书写, 更简洁!
- HTML5 audio标签使用js进行播放控制实例
- 使用jQuery播放/暂停 HTML5视频
- 高效率视频播放: 如何使用3D API 进行视频的高质量回放(1)
- 使用midi*函数进行音乐播放
- asp.net MVC下 使用jquery进行异步提交的两种方式
- 使用jQuery.Validate进行客户端验证(初级篇) 不使用微软验证控件的理由
- [jQuery]使用jQuery.Validate进行客户端验证(初级篇)——不使用微软验证控件的理由
- 使用jQuery进行客户端无刷新的翻页且可以每页显示记录条数
- [jQuery]使用jQuery.Validate进行客户端验证(初级篇)——不使用微软验证控件的理由
- 使用JQuery进行WCF通信的学习记录
- 使用jquery对特殊字符进行转义,防止js注入
- 高效率视频播放: 如何使用3D API 进行视频的高质量回放(1)