The below script polls a wowza video server and returns True or False based on if it is live or not.
<script type="text/javascript" src="http://***/system/misc/scripts/streaminformation.js.php?id=36"></script>
<script>document.write(StreamInformation.STREAMSTATUS())</script>
instead of "True" or "False" i would like to embed "On Air" or "Off Air". Problem is i don't have access to the streaminformation.js.php file so i need to do an if statement or something in javascript based on the true or false result received?
I tried running an if statement in php based on the script result but that didn't seem to work
please help