Livestream Forum

Livestream Forum (http://www.livestream.com/forum/index.php)
-   API & Developer Discussion (http://www.livestream.com/forum/forumdisplay.php?f=19)
-   -   Htlm API buttons only. How to? (http://www.livestream.com/forum/showthread.php?t=13656)

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.


<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>

GinaMarie15 29th April 2014 13:19

We do allow custom API players, here are instructions on how to do so:
http://www.livestream.com/userguide/...tle=Player_API

DJ_Mauro 30th April 2014 13:25

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

kozik262 24th April 2015 08:18

For this you can find on the net a lot of ready-made scripts to help solve your problem

________________________
Zastanawiam się czy wybrać rolety wiszące lub rolety rzymskie.

bittu010 25th April 2015 07:56

Missing Id
 
You are missing id livestream
http://www.geeksgyaan.com/2015/04/there-is-problem-parsing-package-solved.html


All times are GMT -4. The time now is 04:54.