
Autostart not working
Hi,
I love the mediaplayer and ...Hi,
I love the mediaplayer and have been using it for quite some time.
Now, for the first time, I've run into a problem that drives me absolutely mad.
I'm trying to play a single MP3 file with autostart and repeat both set to true. also, I want to hide the player so the visitor has no control over the music (dont ask why, customers wish).
Here is the code I'm using:
bc.. <script src="./files/js/swfobject.js" type="text/javascript"></script>
<div id="musicplayer" class="flashobject">
</div>
<script type="text/javascript">
var fo = new SWFObject("./files/mediaplayer.swf", "musicplayer",'','','6');
fo.addVariable("file","./files/sound.mp3");
fo.addVariable("autostart ","true");
fo.addVariable("repeat","true");
fo.write("musicplayer");
</script>
The problem I have is that the file doesn't play automatically and it doesnt loop, eventhough it should...
The other question I have, is it possible to hide the player? Using CSS seems to stop the player from working also...
thanks for any help!
regards
y