Jwplayer_cloudTest
testing cloudhost feature of jwplayer
HTML
<script src="http://jwpsrv.com/library/3bMFypKqEeKK7CIACqYeXg.js"></script>
<div id='my-video'></div>
<br><div id="content">
<button name='play' id='play' value='play' onclick='play();'>Play</button>
<button name='pause' id='pause' value='pause' onclick='pause();' style='display: none;'>Pause</button>
</div>
CSS
#my-video
{
width:100% !important;
}
#content
{
text-align: center;
width:100px;
height:50px;
alignment-adjust: central;
}
JavaScript
jwplayer('my-video').setup({
file: 'http://sound17.mp3pk.com/indian/entertainment/[Songs.PK]%2003%20-%20Entertainment%20-%20Johnny%20Johnny.mp3',
width: '640',
height: '360'
});
jwplayer().addButton('aaa.png','Test Button',function(){alert(1);},'Test Button');
function play() {
jwplayer().play();
document.getElementById('play').style.display = 'none';
document.getElementById('pause').style.display = 'inline-block';
}
function pause() {
jwplayer().pause();
document.getElementById('pause').style.display = 'none';
document.getElementById('play').style.display = 'inline-block';
}