views:

11

answers:

0

So I got JWplayer 5.3 up and running with this HTML:

<!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="720" height="480"> 
    <param name="movie" value="player.swf" /> 
    <param name="allowfullscreen" value="true" /> 
    <param name="allowscriptaccess" value="always" /> 
    <param name="flashvars" value="file=1.flv" /> 
    <embed 
        type="application/x-shockwave-flash"
        id="player2"
        name="player2"
        src="player.swf" 
        width="720" 
        height="480"
        allowscriptaccess="always" 
        allowfullscreen="true"
        flashvars="file=1.flv" 
    /> 
</object> 

<!-- END OF THE PLAYER EMBEDDING -->

I also include this javascript file to test an onComplete event:

jwplayer('player2').onComplete(function() { alert('aaa'); });

The video starts playing and plays without a problem but once it finishes and the onComplete evetn is fired, the alert window with "aaa" pops out and the browser freezes. I cannot click anywhere. I have to use Ctrl+Alt+Del to close the browser.

Any ideas?