Hello,
I'm trying to make plyaerReady function work. But it can't get the player ID, the following function returns an alert "player null has been instantiated"
function playerReady(obj) {
var id = obj['id'];
var version = obj['version'];
var client = obj['client'];
alert('player '+id+' has been instantiated');
};and the player is embedded as:
<script type="text/javascript" src="swfobject.js"></script>
<div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
<script type="text/javascript">
var so = new SWFObject('player.swf','playerID','500','400','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('width','400');
so.addVariable('height','220');
so.addVariable('file','rtmp://85.235.84.242:1960/simplevideostreaming/giresun.flv');
so.addVariable('javascriptid','playerID');
so.addVariable('enablejs','true');
so.write('container');
</script>
Hi Mustafa,
If you find a solution to the problem please post it here , I've got the very same problem.