forked from gherlein/brightsign-html5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playlist.html
52 lines (41 loc) · 1.02 KB
/
playlist.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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/bsputils.js"></script>
<link type="text/css" rel="stylesheet" href="css/bsputils.css"/>
<style type="text/css">
</style>
<script>
var Playlist;
var localPlayerIP="http://192.168.70.100:8080";
var bsnMRSSurl="http://storage.dish.brightsignnetwork.com/Content/Dish/DynamicPlaylists/DishDemoSidebars.xml";
window.onload = function() {
var isBSP=isBrightSign();
if(isBSP) {
bsp=bsputils_init(isBSP,true);
} else {
bsp=bsputils_init(isBSP,true,localPlayerIP);
}
printObj(bsp);
getID(printObj);
getUserVars(printObj);
getUDPEvents(printObj);
getBSNPlaylist(bsnMRSSurl,scanPlaylist);
};
function scanPlaylist(mrss)
{
for(x=0;x<mrss.items.length;x++)
{
var link=mrss.items[x].content.url;
printObj(link);
}
}
</script>
<html>
<head>
<title></title>
</head>
<body>
<canvas id="canvas" width="1920" height="1080"></canvas>
</body>
</html>