Livestream Forum

Livestream Forum (
-   API & Developer Discussion (
-   -   Htlm API buttons only. How to? (

DJ_Mauro 28th April 2014 23:09

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.

<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' };

"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 ');

log = document.getElementById('log');
log.innerHTML = log.innerHTML + '<br/>' + event;
"livestreamPlayer", "400", "300", "9.0.0", "expressInstall.swf", null, params);


<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()" />


GinaMarie15 29th April 2014 13:19

We do allow custom API players, here are instructions on how to do so:

DJ_Mauro 30th April 2014 13:25

problem solved ty missing <div id="livestreamPlayer" ></div> before buttons.

All times are GMT -4. The time now is 20:10.