videojs参数整理最近研究videojs,整理下⼀些参数周泓图片
1<!DOCTYPE html>
2<html lang="en">
3<head>
结婚纪念日发朋友圈4<meta charset="UTF-8">
5<title>Video.js</title>
wangshi6<link href="css/video-js.css" rel="stylesheet">
7<!-- support IE8 -->
泡的多音字组词8<script src="js/videojs-ie8.min.js"></script>
9</head>
10<body>
11<video id="myvd" class="video-js">
12<p class="vjs-no-js">需要js</p>
13</video>
14<a onclick="byevd()">删除</a>
15<script src="js/video.js"></script>
16<script>
17var vd = videojs('myvd',{
18 width:1000,//宽string|number
19 height:450,//⾼:string|number
20 controls:true,//控制条:boolean
21 preload:"none",//预加载:string;'auto'|'true'|'metadata'|'none'
温碧霞老公何祖光
22 poster:'source/suoluetu.jpg',//预览图:string
23 autoplay:false,//⾃动播放:boolean
24 loop:true,//循环:boolean
25 muted:true,//静⾳:boolean
26 sources:[
27 {
28 src:'source/test.mp4',
29 type:'video/mp4'
30 }
31 ],
32 controlBar: {
33 muteToggle: false,
34 volumeMenuButton:false//静⾳按钮
谈莉娜个人资料35 }
36 },function onPlayerReady(){
37var vdthis = this;
38 videojs.log('ok');
<('ended',function(){
40 videojs.log('ended')
41 })
<('timeupdate',function (e){
43//videojs.log(vdthis.currentTime())
44 })
45 });
46//删除
47function byevd(){
48 vd.dispose();
49 }
50
51</script>
52</body>
53</html>
待完善。。。
发布评论