The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

MP3 Music Player Script Problem

2 posters

Go down

Solved MP3 Music Player Script Problem

Post by Rouge March 31st 2013, 7:00 pm

Okay ... my music player should play but it doesn't for some reason. I've uploaded the music to various places and it works just fine. I've gone over the script over and over and can't identify the problem as I hit the "Play" button, nothing happens.

Is there a place in the admin panel where I can go to check the html tags perhaps? Maybe the tags used are not recognized by the website maybe.

Any ideas would be great -- the mp3. is the menu music from Unreal Tournament 3.

Here's the script:
Code:
<!-- Multi Music Player Submitted by Amanda Prentice 1998--->
<!-- begin code multi music player -->
<center><br />
(Select A Song)</center><br />
<center><object id="multiplayer" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" height="0" standby="Loading Microsoft Windows Media Player components..." width="0" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95">
<param NAME VALUE>
<param NAME="ShowControls" VALUE="0">
<param NAME="ShowStatusBar" VALUE="0">
<param NAME="ShowDisplay" VALUE="0">
<param NAME="DefaultFrame" VALUE="Slide">
<param NAME="Autostart" VALUE="1">
<param NAME="Loop" VALUE="True">
</object>
<form name="form">
<select name="playlist" size="1">
<!-- Add song info here... And don't rip-->
<option value="0">UT3:Menu Theme</option>
<option value="1">Add</option>
<option value="2">Add</option>
<option value="3">Add</option>
</select><br />
<input TYPE="BUTTON" NAME="multiplay" VALUE="play" OnClick="play(document.forms['form'].playlist);">
<input TYPE="BUTTON" NAME="multipause" VALUE="pause" OnClick="document.multiplayer.pause(); playstate=2;">
<input TYPE="BUTTON" NAME="multistop" VALUE="stop" OnClick="document.multiplayer.stop(); playstate=2;"></p>
</form>
<script language="JavaScript">
<!--
var playstate = 1;
shuffle = 1; // Set to 0 to always play first song in list
// Set to 1 to randomly choose the first song to play
songs=new Array();
// Add song URLs here
songs[0]="http://www.fileden.com/files/2013/3/31/3431709/01-ut2007-menutheme-1-.mp3";
songs[1]="";
songs[2]="";
songs[3]="";
if (shuffle == 1) {
var randsg = Math.floor(Math.random()*songs.length);
document.multiplayer.FileName = songs[randsg];
document.multiplayer.scr = songs[randsg];
document.forms['form'].playlist.options[randsg].selected = true;
}
function play(list) {
if (playstate == 2) {
document.multiplayer.Play();
} else {
var snum = list.options[list.selectedIndex].value
document.multiplayer.FileName = songs[snum];
document.multiplayer.scr = songs[snum];
}
playstate = 1;
}
//-->
</script></center>
<!-- end code multi music player -->
Rouge
Rouge
Forumember

Female Posts : 120
Reputation : 9
Language : English
Location : USA-Ohio

Back to top Go down

Solved Re: MP3 Music Player Script Problem

Post by Sanket March 31st 2013, 7:07 pm

Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: MP3 Music Player Script Problem

Post by Rouge March 31st 2013, 7:16 pm

Hi there ... I don't understand what it means when you say file doesn't exist? Is it that it isn't playing because I'm listening to it now. I just uploaded it to fileden. Hmmmm ..is it the .mp3 itself. It's playing for me!
Rouge
Rouge
Forumember

Female Posts : 120
Reputation : 9
Language : English
Location : USA-Ohio

Back to top Go down

Solved Re: MP3 Music Player Script Problem

Post by Sanket March 31st 2013, 7:20 pm

http://awesomescreenshot.com/0b5141xc26
I get that when i open the URL.

Also, i had doubts if the file would play or not since fileden is a download site.

You could generally upload the file to a webhost like bravenet.com
The URL you get there after uploading, will definitely work.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: MP3 Music Player Script Problem

Post by Rouge March 31st 2013, 7:23 pm

Thank you, Sanket ... you reign supreme!! cheers guitar luv


Last edited by Rouge on March 31st 2013, 7:24 pm; edited 1 time in total
Rouge
Rouge
Forumember

Female Posts : 120
Reputation : 9
Language : English
Location : USA-Ohio

Back to top Go down

Solved Re: MP3 Music Player Script Problem

Post by Sanket March 31st 2013, 7:24 pm

Lol. Smile

Is this solved?
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: MP3 Music Player Script Problem

Post by Rouge March 31st 2013, 7:26 pm

Solved to the Maximum ... without a doubt!!!
Rouge
Rouge
Forumember

Female Posts : 120
Reputation : 9
Language : English
Location : USA-Ohio

Back to top Go down

Solved Re: MP3 Music Player Script Problem

Post by Sanket March 31st 2013, 7:26 pm

Smile
Topic Solved & Locked
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum