need help finding an error in this HTML code

Status
Not open for further replies.

Santuzzo

Daemon Poster
Messages
675
Location
Amsterdam, The Netherlands
Hi,

I was looking for a code to embed an audio player in my website, and I found this:
Tutorial for Flash MP3 Player

Two files have to be placed in the audio webfolder.

The code to be used is this:

Code:
<script language="JavaScript" src="http://www.fakedomain.com/myname/audio/audio-player.js"></script>
<object type="application/x-shockwave-flash" data="http://www.fakedomain.com/myname/audio/player.swf" id="audioplayer1" height="24" width="290">
<param name="movie" value="http://www.fakedomain.com/myname/audio/player.swf">
<param name="FlashVars" value="playerID=audioplayer1&soundFile=http://www.fakedomain.com/myname/audio/music.mp3">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>

I changed the parameters to match my website address and my mp3 file but still it does not work.
There must be an error in this code, but I know as good as nothing about HTML code, so I was wondering if someon could help me find the error, so I can fix it and make this work.

Thanks in advance,
Lars
 
THanks.

This is the code I'm using:

Code:
<script language="JavaScript" src="http://www.larsbauermusic.com/audio/audio-player.js"></script>
<object type="application/x-shockwave-flash" data="http://www.larsbauermusic.com/audio/player.swf" id="audioplayer1" height="24" width="290">
<param name="movie" value="http://www.fakedomain.com/myname/audio/player.swf">
<param name="FlashVars" value="playerID=audioplayer1&soundFile=http://www.larsbauermusic.com/audio/for Olivia (R.I.P.).mp3">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>

When I open the site and click on the player, it says file not found.

I use Treillian to make my page ,and I copied the code into the source view of Treillian, but when I switch to Editor and go back to source view, the code is changed and the part with the name of the mp3 file is missing.
 
I'm fairly sure you're not allowed to use spaces in the file name - you need to put underscores _ instead. Though I may be talking rubbish.
 
I'm fairly sure you're not allowed to use spaces in the file name - you need to put underscores _ instead. Though I may be talking rubbish.

Thank you.

I tried something different, and it looks lioke I fond the mistake:

Instead of using Treillian, I pasted the code in the editor/notepad and saved it as an .htm file. Now it works in Firefox, but not in IE.....
 
Ok, the code I'm using works now in Firefox but not in IE8.

Here's the actual code:

Code:
<script language="JavaScript" src="http://www.larsbauermusic.com/audio/audio-player.js"></script>
<P align=center><object type="application/x-shockwave-flash" data="http://www.larsbauermusic.com/audio/player.swf" id="audioplayer1" height="24" width="290">
<param name="movie" value="http://www.fakedomain.com/myname/audio/player.swf">
<param name="FlashVars" value="playerID=audioplayer1&soundFile=http://www.larsbauermusic.com/audio/for Olivia (R.I.P.).mp3">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>

Does anyone have a clue what's wrong and why it does not work in IE8?
Or could it be sometihng with my IE settings?
 
i see the following for movie parameter.

<param name="movie" value="http://www.fakedomain.com/myname/audio/player.swf">


i would try changing this to point to the swf on the larsbauermusic.com server


ps - you can reference filenames that have spaces by substituting %20 in the url.
 
Random question, sorry, but have considered just letting users download it and just play it in their own preferred player?

Edit: One thing I noticed, sometimes when I look at the page I can see the table's borders and lines (white), sometimes I can't (Firefox 3.6).
 
Random question, sorry, but have considered just letting users download it and just play it in their own preferred player?

That's a valid question, but these clips are mroe meant as shore demo's to get an impression of my music.
Once I have a full album recorded I want to make that downloadable.

But does the way it is now on my music page look ok? Does it work?
 
Status
Not open for further replies.
Back
Top Bottom