PC+Mobile端自适应简洁的视频播放器 Check out the demo here.
<video id="video2" src="./video1.mp4" poster="video1_default.jpg"></video>
<link rel="stylesheet" href="../dist/video-player.css">
<script src="../dist/video-player.js"></script>
new vp.VideoPlayer({
video: "#video2"
})
key | 值类型 | 描述 |
---|---|---|
video | {String,<video/>} |
video标签元素id或video标签元素 |
示例:
/**
* @options
* video - video标签元素id或video标签元素
*/
var options = {
video: "#video2"
}