基本信息
源码名称:videoJS 网页视频播放器支持MP4
源码大小:0.10M
文件格式:.zip
开发语言:js
更新时间:2017-11-27
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
videoJS 网页视频播放器支持MP4
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Video.js 6.2.8</title> <link href="css/video-js.css" rel="stylesheet"> <style> body{background-color: #191919} .m{ width: 740px; height: 400px; margin-left: auto; margin-right: auto; margin-top: 100px; } </style> </head> <body> <div class="m"> <video id="my-video" class="video-js" controls preload="auto" width="740" height="400" poster="m.png" data-setup="{}"> <source src="http://jq22com.qiniudn.com/jq22-sp.mp4" type="video/mp4"> <p class="vjs-no-js"> To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a> </p> </video> <script src="js/video.min.js"></script> <script type="text/javascript"> var myPlayer = videojs('my-video'); videojs("my-video").ready(function(){ var myPlayer = this; myPlayer.play(); }); </script> </div> </body> </html>