Hi, we've recently upgraded to the more robust (in terms of live streaming) FFmp3 flash player, opposed to the minicaster we were using previously.
the problem we are facing is that previously we had a play/pause button for visually impaired users, that was controlled with javascript.
it was assumed that the js code would be the same for this player, but everything i have tried does not work.
Does anyone else has a button with play/pause functionality in javascript working for this player? if so, help would be appreciated.
probably worth mentioning, our previous player (also flash/swf) used this code;
<script language="JavaScript">
<!--
function getObject(_x) {
// used to locate the Flash asset in the DOM. Works reliably on FF, IE and Safari.
return document.getElementById(_x);
}
function toggle() {
// changes between play and pause. To force audio to stop use '0' in the function.
getObject("liveP").sentEvent("STOP");
alert("toggle()");
}
// -->
</script>
Thanks.
Take care,
Steve.
the problem we are facing is that previously we had a play/pause button for visually impaired users, that was controlled with javascript.
it was assumed that the js code would be the same for this player, but everything i have tried does not work.
Does anyone else has a button with play/pause functionality in javascript working for this player? if so, help would be appreciated.
probably worth mentioning, our previous player (also flash/swf) used this code;
<script language="JavaScript">
<!--
function getObject(_x) {
// used to locate the Flash asset in the DOM. Works reliably on FF, IE and Safari.
return document.getElementById(_x);
}
function toggle() {
// changes between play and pause. To force audio to stop use '0' in the function.
getObject("liveP").sentEvent("STOP");
alert("toggle()");
}
// -->
</script>
Thanks.
Take care,
Steve.
Last edited: