-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdash-vod-multiple-cc.html
44 lines (41 loc) · 1.15 KB
/
dash-vod-multiple-cc.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<title>DASH Multiple CC</title>
<link rel="stylesheet" type="text/css" href="css/player.css">
<meta name="robots" content="noindex">
</head>
<body>
<script src="https://cdn.radiantmediatechs.com/rmp/8.4.10/js/rmp.min.js"></script>
<div id="rmp"></div>
<script>
const ccFiles = [
['en', 'English', 'https://www.radiantmediaplayer.com/media/vtt/captions/cc.vtt'],
['fr', 'Français', 'https://www.radiantmediaplayer.com/media/vtt/captions/cc-fr.vtt']
];
var src = {
dash: 'https://5b44cf20b0388.streamlock.net:8443/vod/smil:bbb.smil/manifest.mpd'
};
var settings = {
licenseKey: 'your-license-key',
src: src,
autoplay: true,
capLevelToPlayerSize: false,
ignoreDevicePixelRatio: false,
disableKeyboardControl: true,
ccFiles: ccFiles,
delayToFade: 5000,
ccFontSize: 3,
contentMetadata: {
title: 'DASH Multiple CC',
},
skin: 'tv'
};
window.rmp = new RadiantMP('rmp');
window.rmp.init(settings);
</script>
<script src="js/player-cc.js"></script>
</body>
</html>