0
0

plyr.html 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>H+ 后台主题UI框架 - 视频播放</title>
  7. <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
  8. <meta name="description" content="H+是一个完全响应式,基于Bootstrap3最新版本开发的扁平化主题,她采用了主流的左右两栏式布局,使用了Html5+CSS3等现代技术">
  9. <link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min.css?v=3.3.7" rel="stylesheet">
  10. <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
  11. <link href="css/style.css?v=4.1.0" rel="stylesheet">
  12. <link rel="stylesheet" href="css/plugins/plyr/plyr.css">
  13. </head>
  14. <body class="gray-bg">
  15. <div class="wrapper wrapper-content animated fadeInRight">
  16. <div class="row">
  17. <div class="col-sm-12">
  18. <div class="ibox float-e-margins">
  19. <div class="ibox-title">
  20. <h5>HTML5 多媒体播放器 <a href="https://plyr.io/" target="_blank">https://plyr.io/</a></h5>
  21. <div class="ibox-tools">
  22. <a class="collapse-link">
  23. <i class="fa fa-chevron-up"></i>
  24. </a>
  25. <a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
  26. <i class="fa fa-wrench"></i>
  27. </a>
  28. <ul class="dropdown-menu dropdown-user">
  29. <li><a href="form_basic.html#">选项1</a>
  30. </li>
  31. <li><a href="form_basic.html#">选项2</a>
  32. </li>
  33. </ul>
  34. <a class="close-link">
  35. <i class="fa fa-times"></i>
  36. </a>
  37. </div>
  38. </div>
  39. <div class="ibox-content">
  40. <p>Plyr 是一个使用 HTML5 开发的基于浏览器上的多媒体播放器。支持自定义的播放控制和&nbsp;WebVTT 字幕。</p>
  41. <p>特性:</p>
  42. <ul>
  43. <li>
  44. <p><strong>可访问性</strong> - 完全支持字幕和屏幕阅读器</p>
  45. </li>
  46. <li>
  47. <p><strong>轻量级</strong> - 压缩后只有 4.8Kb</p>
  48. </li>
  49. <li>
  50. <p><strong>可定制</strong> - 外观可以根据需要进行调整</p>
  51. </li>
  52. <li>
  53. <p><strong>语义化</strong> - 使用 HTML5 的输入框进行音量和进度的调整</p>
  54. </li>
  55. <li>
  56. <p><strong>快速响应</strong> - 就像你预期的那样</p>
  57. </li>
  58. <li>
  59. <p><strong>音频和视频</strong>- 支持视频和纯音频</p>
  60. </li>
  61. <li>
  62. <p><strong>API</strong>&nbsp;- 易用 API</p>
  63. </li>
  64. <li>
  65. <p><strong>向下兼容</strong> - 如果浏览器不支持,则自动使用内建播放器</p>
  66. </li>
  67. <li>
  68. <p><strong>全屏支持</strong> -支持原生全屏和退出全屏</p>
  69. </li>
  70. <li>
  71. <p><strong>无依赖</strong> - 使用原生 JS 编写,不需要jQuery</p>
  72. </li>
  73. </ul>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="col-sm-8">
  78. <div class="ibox float-e-margins">
  79. <div class="ibox-title">
  80. <h5>视频播放</h5>
  81. <div class="ibox-tools">
  82. <a class="collapse-link">
  83. <i class="fa fa-chevron-up"></i>
  84. </a>
  85. <a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
  86. <i class="fa fa-wrench"></i>
  87. </a>
  88. <ul class="dropdown-menu dropdown-user">
  89. <li><a href="form_basic.html#">选项1</a>
  90. </li>
  91. <li><a href="form_basic.html#">选项2</a>
  92. </li>
  93. </ul>
  94. <a class="close-link">
  95. <i class="fa fa-times"></i>
  96. </a>
  97. </div>
  98. </div>
  99. <div class="ibox-content">
  100. <div class="player">
  101. <video poster="https://plyr.io/poster.jpg" controls crossorigin>
  102. <!-- Video files -->
  103. <source src="https://cdn.selz.com/plyr/1.0/movie.mp4" type="video/mp4">
  104. <source src="https://cdn.selz.com/plyr/1.0/movie.webm" type="video/webm">
  105. <!-- Text track file -->
  106. <track kind="captions" label="English" srclang="en" src="https://cdn.selz.com/plyr/1.0/example_captions_en.vtt" default>
  107. <!-- Fallback for browsers that don't support the <video> element -->
  108. <a href="https://cdn.selz.com/plyr/1.0/movie.mp4">Download</a>
  109. </video>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. <div class="col-sm-4">
  115. <div class="ibox float-e-margins">
  116. <div class="ibox-title">
  117. <h5>音频播放</h5>
  118. <div class="ibox-tools">
  119. <a class="collapse-link">
  120. <i class="fa fa-chevron-up"></i>
  121. </a>
  122. <a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
  123. <i class="fa fa-wrench"></i>
  124. </a>
  125. <ul class="dropdown-menu dropdown-user">
  126. <li><a href="form_basic.html#">选项1</a>
  127. </li>
  128. <li><a href="form_basic.html#">选项2</a>
  129. </li>
  130. </ul>
  131. <a class="close-link">
  132. <i class="fa fa-times"></i>
  133. </a>
  134. </div>
  135. </div>
  136. <div class="ibox-content">
  137. <div class="player">
  138. <audio controls>
  139. <!-- Audio files -->
  140. <source src="http://music.baidu.com/cms/app/muplayer/test_mp3/1.mp3" type="audio/mp3">
  141. <!-- Fallback for browsers that don't support the <audio> element -->
  142. 您的浏览器不支持在线播放,请<a href="http://music.baidu.com/cms/app/muplayer/test_mp3/1.mp3">下载</a>
  143. </audio>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. <script>
  151. (function (d, u) {
  152. var a = new XMLHttpRequest(),
  153. b = d.body;
  154. // Check for CORS support
  155. // If you're loading from same domain, you can remove the if statement
  156. if ("withCredentials" in a) {
  157. a.open("GET", u, true);
  158. a.send();
  159. a.onload = function () {
  160. var c = d.createElement("div");
  161. c.setAttribute("hidden", "");
  162. c.innerHTML = a.responseText;
  163. b.insertBefore(c, b.childNodes[0]);
  164. }
  165. }
  166. })(document, "css/plugins/plyr/sprite.svg");
  167. </script>
  168. <!-- Plyr core script -->
  169. <script src="js/plugins/plyr/plyr.js"></script>
  170. <script>
  171. plyr.setup();
  172. </script>
  173. <!-- 全局js -->
  174. <script src="js/jquery.min.js?v=2.1.4"></script>
  175. <script src="js/bootstrap.min.js?v=3.3.7"></script>
  176. <!-- 自定义js -->
  177. <script src="js/content.js?v=1.0.0"></script>
  178. <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
  179. <!--统计代码,可删除-->
  180. </body>
  181. </html>