forked from videojs/videojs-contrib-ads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (46 loc) · 1.43 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example Ad Integration</title>
<!-- Load local video.js -->
<link rel="stylesheet" href="../node_modules/video.js/dist/video-js.css">
<script src="../node_modules/video.js/dist/video.js"></script>
<!-- Load local ads plugin. -->
<link rel="stylesheet" href="../dist/videojs.ads.css">
<script src="../dist/videojs.ads.js"></script>
<!-- Load example ads integraiton. -->
<script src="example-integration.js"></script>
<link rel="stylesheet" href="app.css">
</head>
<body>
<h1>Example Ad Integration</h1>
<p>This page uses the built files, so you must do a local build before the
example will work.</p>
<video
id="examplePlayer"
class="video-js vjs-default-skin"
width="640"
height="264"
poster="http://vjs.zencdn.net/v/oceans.png"
autoplay
controls>
<source src="http://vjs.zencdn.net/v/oceans.mp4" type='video/mp4' />
<source src="http://vjs.zencdn.net/v/oceans.webm" type='video/webm' />
<source src="http://vjs.zencdn.net/v/oceans.ogv" type='video/ogg' />
</video>
<h2>Set Src programmatically</h2>
<form>
<p>
<label>
<span>src: </span>
<input type="url" name="src" value="http://media.w3.org/2010/05/sintel/trailer.mp4" />
</label>
<button type="submit">set src</button>
</p>
</form>
<h2>Events</h2>
<ol class="log"></ol>
<script src="app.js"></script>
</body>
</html>