
Chromecast Code Example
Hi,
Am working on a JW Player configuration to send to Chromecast. This is what I have, but it's not working. Is there a complete code example that I could use as a reference? Have been looking everywhere with no joy.
Below is an example of what I am working with presently.
-Tim
----------
<head>
<title>JW Player Test</title>
<script src="jwplayer/jwplayer.js"></script>
<script>jwplayer.key="[MY ENTERPRISE JW LICENSE KEY]==";</script>
</head>
<body>
<!--
~~~~~~~~~~~~- JW PLAYER ~~~~~~~~~~~~~~-
-->
<div id="player">Loading the player...</div>
<script type="text/javascript">
jwplayer('player').setup({
file: 'http://[MY WOWZA SERVER]:1935/secure/l2cam.stream_360p/playlist.m3u8',
skin: 'jwplayer/bekle.xml',
width: '100%',
height: '100%',
image: 'images/wowza_poster.jpg',
aspectratio: '16:9',
primary: 'html',
"ga":{},
cast:{
appid:”[MY APP ID]”,
railcolor:”#e31e76",
// loadscreen:”/img.png”,
// endscreen:”/img.png”,
logo:”logo.png”
},
});
</script>
</div>
</body>