-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (74 loc) · 2.44 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html>
<head>
<title>Web Player</title>
<link href="http://vjs.zencdn.net/4.11/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/4.11/video.js"></script>
<link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<style type="text/css">
body {background-color: #DDDDDD}
.box {
margin: 10px auto;
padding: 16px 20px;
background: #FFFFFF;
border: 2px solid #E0E0E0;
color: #333333;
line-height: 26px;
-moz-border-radius: 8px;
-khtml-border-radius: 8px;
-webkit-border-radius: 8px;
border-radius: 8px;
}
.wrap{clear: left;
float: left;
position: relative;
left: 25%;
text-align: center;
}
.vjs-default-skin { color: #eeeeee; }
.vjs-default-skin .vjs-play-progress,
.vjs-default-skin .vjs-volume-level { background-color: #6caacc }
.vjs-default-skin .vjs-control-bar,
.vjs-default-skin .vjs-big-play-button { background: rgba(3,0,0,0.7) }
.vjs-default-skin .vjs-slider { background: rgba(3,0,0,0.2333333333333333) }
</style>
<script type="text/javascript">
function changescr()
{
var sourceFile=document.getElementById("NewSrc").value;
var mp4=document.getElementById("MY_VIDEO_1_html5_api");
mp4.src=sourceFile;
}
</script>
</head>
<body>
<div class="wrap">
<h1 class="box">Web Player</h1>
<form class="bs-example bs-example-form box" role="form">
<video id="MY_VIDEO_1" class="video-js vjs-default-skin" width="640" height="400" controls data-setup="{}" poster="MY_VIDEO_POSTER.jpg">
<source src="" 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>
<br>
<div>
<table>
<tbody>
<tr>
<td><div class="input-group">
<span class="input-group-addon">URL</span>
<input type="text" id="NewSrc" class="form-control" placeholder="输入视频链接">
</div>
</td>
<td><button type="button" class="btn btn-success" onclick="changescr();">click</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<h4 class="box"><a href="https://github.com/mountainguan/bili-abroad">@bili-abroad project</a></h4>
</div>
</body>
</html>