-
Notifications
You must be signed in to change notification settings - Fork 1
/
ads-dash.html
42 lines (39 loc) · 1.3 KB
/
ads-dash.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<title>Fire TV Demo App - Video ads with rmp-vast - DASH</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<meta name="robots" content="noindex">
</head>
<body>
<script src="https://cdn.radiantmediatechs.com/rmp/8.4.0/js/rmp.min.js"></script>
<div id="rmp"></div>
<script>
var src = {
dash: 'https://www.radiantmediaplayer.com/media/v1/avc-mp4/dash/manifest.mpd'
};
var settings = {
licenseKey: 'your-license-key',
src: src,
contentMetadata: {
title: 'Fire TV Demo App - Video ads with rmp-vast - DASH'
},
autoplay: true,
delayToFade: 5000,
capLevelToPlayerSize: false,
ignoreDevicePixelRatio: false,
disableKeyboardControl: true,
ads: true,
adParser: 'rmp-vast',
adTagUrl: '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%3Dlinear&correlator=' + Date.now(),
skin: 'tv'
};
var elementID = 'rmp';
window.rmp = new RadiantMP(elementID);
rmp.init(settings);
</script>
<script src="js/player.js"></script>
</body>
</html>