Skip to content

Instantly share code, notes, and snippets.

@nicolasiensen
Created December 6, 2015 15:01
Show Gist options
  • Save nicolasiensen/04ffd85652dbba4ae4ea to your computer and use it in GitHub Desktop.
Save nicolasiensen/04ffd85652dbba4ae4ea to your computer and use it in GitHub Desktop.
<html>
<head>
<title>ao vivo </title>
<!--JS JW6-->
<script type="text/javascript" src="http://a123.g.akamai.net/f/123/214238/1d/214258g.download.akamai.com/214238/_player/jwplayer6/6_9/jwplayer.js" ></script>
<script type="text/javascript">jwplayer.key = "ZfKOArQz+u1vxoCkwM9cihPjTUoVodJwgUCFZRpZLis=";</script>
</head>
<body>
<div id="dPlayer">
<div class="dTitulo_video"></div>
<!--PLAYER JW6 - LIVE01-->
<div id="dPlayerAOVIVO"></div>
<script type='text/javascript'>
jwplayer('dPlayerAOVIVO').setup({
abouttext: 'produzido por ucan.com.br',
aboutlink: 'http://www.ucan.com.br',
file: 'http://ucanhls-lh.akamaihd.net/i/ucanhls_1@76030/master.m3u8',
//image : "_img/thumbs/teste.jpg",
provider: "http://players.edgesuite.net/flash/plugins/jw/v3.7/AkamaiAdvancedJWStreamProvider.swf",
liveBufferProfile: 'livestable',
androidhls: 'true',
width: "980",
aspectratio: "16:9",
height: '540',
autostart: 'True',
primary: 'flash',
repeat: 'always',
fallback: 'True',
title: 'AO VIVO',
});
jwplayer().onError(function(){
theTimeout = setTimeout(function(){
jwplayer().play(true);
},15000);
});
jwplayer().onPlay(function(){
clearTimeout(theTimeout);
});
</script>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment