-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
58 lines (53 loc) · 2.7 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>videojs-vast-vpaid-waterfall Demo</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/video.js/7.0.5/video-js.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/videojs-contrib-ads/6.6.5/videojs-contrib-ads.min.css">
<link href="src/videojs-vast-vpaid-waterfall.css" rel="stylesheet">
</head>
<body>
<video id="videojs-vast-vpaid-waterfall-player" class="video-js vjs-default-skin" autoplay controls width="640" height="360">
<source src="https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" type="application/x-mpegURL">
</video>
<script src="https://cdnjs.cloudflare.com/ajax/libs/video.js/7.0.5/video.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/vast-client.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script src="https://unpkg.com/[email protected]/bin/VPAIDHTML5Client.js"></script>
<script src="https://unpkg.com/[email protected]/bin/VPAIDFLASHClient.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/videojs-contrib-ads/6.6.5/videojs-contrib-ads.js"></script>
<script src="src/videojs-vast-vpaid-waterfall.js"></script>
<script>
var player = window.player = videojs("videojs-vast-vpaid-waterfall-player");
player.play();
player.vastWaterfall({
preroll:
[
{
ads: ["https://cdn.rawgit.com/InteractiveAdvertisingBureau/VAST_Samples/63c9745d9267fe9da64ceaa180bf86be523ef3c3/VAST%201-2.0%20Samples/Inline_LinearVAST2vpaid.xml","https://cdn.rawgit.com/InteractiveAdvertisingBureau/VAST_Samples/dc7b176c27239e00dd1cefc5c8ba74ee3aec4e08/VAST%201-2.0%20Samples/Inline_LinearRegular_VAST2.0.xml"]
}
],
midroll:
[
{
time: 223,
ads: ["http://search.spotxchange.com/vast/2.00/79391?VPAID=1&content_page_url=test.com&cb=3202405928168446&player_width=300&player_height=250","https://cdn.rawgit.com/InteractiveAdvertisingBureau/VAST_Samples/63c9745d9267fe9da64ceaa180bf86be523ef3c3/VAST%201-2.0%20Samples/Inline_LinearRegular_VAST2.0.xml"]
},
{
time: 223,
ads: ["https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator="]
}
],
postroll:
[
{
ads: ["https://cdn.rawgit.com/InteractiveAdvertisingBureau/VAST_Samples/63c9745d9267fe9da64ceaa180bf86be523ef3c3/VAST%201-2.0%20Samples/Inline_LinearVAST2vpaid.xml"]
}
],
flashWrapperPath: "https://unpkg.com/[email protected]/bin/VPAIDFlash.swf",
debug: true
});
</script>
</body>
</html>