-
Notifications
You must be signed in to change notification settings - Fork 9
/
receiver.html
63 lines (57 loc) · 2.5 KB
/
receiver.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
59
60
61
62
63
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Ooyala Receiver</title>
<script type="text/javascript" src="//www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js"></script>
<script type="text/javascript" src="//player.ooyala.com/static/v4/stable/4.27.5/core.min.js"></script>
<script type="text/javascript" src="//player.ooyala.com/static/v4/stable/4.27.5/video-plugin/bit_wrapper.min.js"></script>
<script type="text/javascript" src="//player.ooyala.com/static/v4/stable/4.27.5/skin-plugin/html5-skin.min.js"></script>
<link rel="stylesheet" href="//player.ooyala.com/static/v4/stable/4.27.5/skin-plugin/html5-skin.min.css">
</head>
<body>
<!-- Splash screen container -->
<!-- Splash screen is the screen that is displayed before the actual cast starts -->
<!-- It can display a logo and a status -->
<div id="splash-screen" class="fbox-container fs">
<!-- Logo image that will be displayed on the splash screen -->
<!-- Having this element on the page is required to display the logo -->
<img id="splash-image" src="images/logo.svg" />
<!-- Chromecast status container that will display the status on splash screen -->
<!-- Having this element on the page is required to display the status -->
<div id="status-cast">
</div>
</div>
<!-- Container for Player V4 -->
<!-- Having this element on the page is required -->
<div id="player"></div>
<script type="text/javascript" src="//player.ooyala.com/static/v4/stable/4.27.5/cast/cast.min.js"></script>
<script>
var pageLevelParams = {
pcode: "pleaseFillTheRightPcode",
playerBrandingId: "pleaseFillTheRightPlayerId",
skin: {
inline: {
pauseScreen: {
showDescription: false
}
}
},
onCreate: player =>
player.mb.subscribe(
'*',
'cast-sample-app',
(event, parameters) => {
console.log(`Notification about ${event} with the following parameters ${parameters}`);
}
)
};
OOCast.init(
'urn:x-cast:ooyala',
pageLevelParams
);
</script>
</body>
</html>