forked from videojs/videojs-contrib-dash
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
48 lines (41 loc) · 1.34 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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Test Player</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="node_modules/video.js/dist/video-js.css">
<script src="node_modules/video.js/dist/ie8/videojs-ie8.js"></script>
</head>
<body>
<video id="player" width=600 height=300 class="video-js vjs-default-skin" controls></video>
<video id="live-player" width=600 height=300 class="video-js vjs-default-skin" controls></video>
<script src="node_modules/video.js/dist/video.js"></script>
<script src="node_modules/dashjs/dist/dash.all.debug.js"></script>
<script src="dist/videojs-dash.js"></script>
<script>
var
player = videojs('player', {
html5: {
dash: {
limitBitrateByPortal: true
}
}
}),
livePlayer = videojs('live-player');
player.ready(function() {
player.src({
src: 'http://dash.edgesuite.net/akamai/bbb_30fps/bbb_30fps.mpd',
type: 'application/dash+xml'
});
});
livePlayer.ready(function(){
livePlayer.src({
src: 'http://vm2.dashif.org/livesim/mup_30/testpic_2s/Manifest.mpd',
type: 'application/dash+xml'
});
});
</script>
</body>
</html>