forked from videojs/videojs-errors
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
77 lines (73 loc) · 2.2 KB
/
Copy pathindex.html
File metadata and controls
77 lines (73 loc) · 2.2 KB
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>
<meta charset="utf-8">
<title>videojs-errors Demo</title>
<link href="/node_modules/video.js/dist/video-js.css" rel="stylesheet">
<link href="/dist/videojs-errors.css" rel="stylesheet">
<script src="/node_modules/video.js/dist/video.js"></script>
<script src="/dist/videojs-errors.js"></script>
<style>
body {
font-family: Arial, sans-serif;
}
.info {
background-color: #eee;
border: thin solid #333;
border-radius: 3px;
padding: 0 5px;
text-align: center;
}
</style>
</head>
<body>
<div class="info">
<p>
You can see the Video.js Errors plugin in action below.
Look at the source of this page to see how to use it with your videos.
</p>
</div>
<h3>Standard Video Player Size 640x360</h3>
<video id="video"
class="video-js vjs-default-skin"
height="360"
width="640"
controls>
<source src="//vjs.zencdn.net/v/oceans.mp4" type='video/mp4'>
<source src="//vjs.zencdn.net/v/oceans.webm" type='video/webm'>
<p>
Your browser doesn't support video. Please <a href="http://browsehappy.com/">upgrade your browser</a> to see the example.
</p>
</video>
<br />
<h3>Mini Video Player Size 300x150</h3>
<video id="mini"
class="video-js vjs-default-skin"
height="150"
width="300"
controls>
<source src="//vjs.zencdn.net/v/oceans.mp4" type='video/mp4'>
<source src="//vjs.zencdn.net/v/oceans.webm" type='video/webm'>
<p>
Your browser doesn't support video. Please <a href="http://browsehappy.com/">upgrade your browser</a> to see the example.
</p>
</video>
<ul>
<li><a href="/test/">Run unit tests in browser.</a></li>
</ul>
<script>
(function(window, videojs) {
window.player = videojs('video');
window.player.errors();
window.player.play();
window.mini = videojs('mini');
window.mini.errors();
window.mini.play();
// Sample Custom Error
// If you want to fire a custom error at any time use
// the following syntax:
// player.error({code: 1, message:'test', status: 404});
}(window, window.videojs));
</script>
</body>
</html>