View Single Post
  #1  
Old 29th April 2014, 00:09
DJ_Mauro DJ_Mauro is offline
Junior Member
 
Join Date: May 2013
Posts: 2
Unhappy Htlm API buttons only. How to?

greetings, i whould like to add the html API on my site. I need only buttons to be able to play, pause, and adjust volume. I've basic knowledge of HTML, i've tried to do it by miself but it doesn't works. Can anyone help me? This what i've on my html file.


<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">

<script type="text/javascript" src="swfobject.js"></script>
<script src="mootools.js" language="javascript"></script>
<script src="slider.js" language="javascript"></script>

<script type="text/javascript">
params = { AllowScriptAccess: 'always' };

swfobject.embedSWF("http://cdn.livestream.com/chromelessPlayer/v20/playerapi.swf",
"livestreamPlayer", "533", "300", "9.0.0", "expressInstall.swf", null, params);

function livestreamPlayerCallback(event) {
eventDiv = document.getElementById('log');
eventDiv.innerHTML = eventDiv.innerHTML + event + '<br/>';

if (event == 'ready') {
player = document.getElementById("livestreamPlayer");
player.setDevKey(' my code here ');
player.load(' my channel name ');
player.startPlayback();
}

log = document.getElementById('log');
log.innerHTML = log.innerHTML + '<br/>' + event;
}
swfobject.embedSWF("http://cdn.livestream.com/chromelessPlayer/v21/playerapi.swf",
"livestreamPlayer", "400", "300", "9.0.0", "expressInstall.swf", null, params);
</script>



</head>

<body style="

background: black;
margin: -2;

">


<input type="button" value="play" onclick="player.startPlayback()" />
<input type="button" value="pause" onclick="player.stopPlayback()" />
<input type="button" value="vol +" onclick="player.volumeUp()" />
<input type="button" value="vol -" onclick="player.volumeDown()" />


</body>
</html>
Reply With Quote