HTML 視頻(Videos)

來源:互聯網
上載者:User

標籤:auto   業務   class   ble   bsp   utf-8   run   target   color   

前端video做起來很簡單,但是還是需要做一些記錄,不然下次再做相關的業務仍得費時間找。

 

 

 

 

參考地址:

http://www.jq22.com/jquery-info404

 

http://www.runoob.com/html/html-videos.html

 

 

 

 

 

 

相關代碼:

 1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Video.js 5.18.4</title> 6     <link href="css/video-js.css" rel="stylesheet"> 7     <!-- If you‘d like to support IE8 --> 8     <script src="js/videojs-ie8.min.js"></script> 9     <style>10         body{background-color: #191919}11         .m{ width: 640px; height: 264; margin-left: auto; margin-right: auto; margin-top: 100px; }12     </style>13 </head>14 15 <body>16     <div class="m">17         <video id="my-video" class="video-js" controls preload="auto" width="640" height="264"18           poster="MY_VIDEO_POSTER.jpg" data-setup="{}">19             <source src="http://vjs.zencdn.net/v/oceans.mp4" type="video/mp4">20             <source src="http://vjs.zencdn.net/v/oceans.webm" type="video/webm">21             <source src="http://vjs.zencdn.net/v/oceans.ogv" type="video/ogg">22             <p class="vjs-no-js">23               To view this video please enable JavaScript, and consider upgrading to a web browser that24               <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>25             </p>26           </video>27           <script src="http://vjs.zencdn.net/5.18.4/video.min.js"></script>    28           <script type="text/javascript">29             var myPlayer = videojs(‘my-video‘);30             videojs("my-video").ready(function(){31                 var myPlayer = this;32                 myPlayer.play();33             });34         </script>35     </div>36 37 </body>38 </html>

 

HTML 視頻(Videos)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.