HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Code and MP3s
Goto page 1, 2  Next
Post new topic   Reply to topic    HTML Help Forum -> General HTML
View previous topic :: View next topic  
Author Message
max



Joined: 26 Sep 2005
Posts: 1

PostPosted: Mon Sep 26, 2005 6:32 pm     Code and MP3s Reply with quote

hi i was wondering how you load up an MP3 by using html code, not just by dragging it over. any help or further references would be great. thanks
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Tue Sep 27, 2005 3:57 am     Reply with quote

Try this code:
Code:
<object id="MediaPlayer" width=320 height=286
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Microsoft® Windows® Media Player components..."
type="application/x-oleobject"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
<param name="filename" value="interview_fox_video.asx">
<param name="autoStart" value="true">               
<param name="showControls" value="true">
<param name="ShowStatusBar" value="true">
<param name="Autorewind" value="true">
<param name="ShowDisplay" value="false">   
<embed src="interview_fox_video.asx" width="320" height="286" type="application/x-mplayer2" name="MediaPlayer" autostart="1" showcontrols="0" showstatusbar="1" autorewind="1" showdisplay="0">
</embed></object>

Replace the path (interview_fox_video.asx) to the path of your MP3 file in both places


Last edited by Corey Bryant on Sat Mar 08, 2008 7:40 am; edited 1 time in total
DeltaOmega553



Joined: 03 Oct 2005
Posts: 9

PostPosted: Mon Oct 03, 2005 4:45 pm     Reply with quote

I'm using a Geocities account to host the .wav file I want played on My Space whenever a user loads my profile on it.

The URL to my website is http://www.geocities.com/mazi_tabibi689/index.html

and the name of the song I put in as "background music" on that page is "sonic3.wav"

When I replace "interview_fox_video.asx" with my URL, what exactly do I replace it with?

I've tried both: http://www.geocities.com/mazi_tabibi689/index.html and http://www.geocities.com/mazi_tabibi689/index/sonic3.wav

neither worked on My Space.

What am I doing wrong?
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Mon Oct 03, 2005 5:03 pm     Reply with quote

DeltaOmega553 wrote:
What am I doing wrong?

Contact Geocities to see if they allow you to hotlink. A lot of free webhosting companies prevent hotlinking giles because this takes up too much of their bandwidth and they do not get any advertisement for it
DeltaOmega553



Joined: 03 Oct 2005
Posts: 9

PostPosted: Mon Oct 03, 2005 5:15 pm     Reply with quote

I doubt it. I think I read somewhere Geocities doesn't allow image hotlinking and if that's true, then i'm sure they wouldn't allow music hotlinking too.

do you know of any free web hosting sites that do allow hotlinking so I can put my music up?
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Mon Oct 03, 2005 5:44 pm     Reply with quote

Hotlinking is hotlinking - usually there is no difference between the type of files.

As far as free websites - no I have not used a free webhosts in about eight years. You might search this site for free wehosts or google that to see what is out there
DeltaOmega553



Joined: 03 Oct 2005
Posts: 9

PostPosted: Mon Oct 03, 2005 6:36 pm     Reply with quote

thank you corey...

you've been an enormous help to me...

i appreciate it. Smile
DeltaOmega553



Joined: 03 Oct 2005
Posts: 9

PostPosted: Tue Oct 04, 2005 8:29 am     Reply with quote

are there any alternatives other than using hotlinking to allow custom music be played on your my space profile when somebody loads it?
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Tue Oct 04, 2005 8:41 am     Reply with quote

I am not familiar with myspace at all, but if they allow you to upload fils that would be it. But myspace has their own forums as well - you might find useful information there
DeltaOmega553



Joined: 03 Oct 2005
Posts: 9

PostPosted: Tue Oct 04, 2005 9:03 am     Reply with quote

Ok. I found a web host that allows me to hotlink.

here is my "my space" profile:

http://www.myspace.com/31409160


I used the code you wrote above but when the page loads... a) the song doesn't play and b) there's ugly code above the player that's supposed to play the song.

what's going on?
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Tue Oct 04, 2005 9:25 am     Reply with quote

DeltaOmega553 wrote:
I used the code you wrote above but when the page loads... a) the song doesn't play
Is this a WMV, WAV, MOV, an MP3, WMA, a RAM, MIDI file that you are trying to play?
DeltaOmega553 wrote:
b) there's ugly code above the player that's supposed to play the song.
You did not copy the code properly. Recheck the copying / pasting of the code
DeltaOmega553



Joined: 03 Oct 2005
Posts: 9

PostPosted: Tue Oct 04, 2005 10:05 am     Reply with quote

this is an mp3 file.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Tue Oct 04, 2005 10:15 am     Reply with quote

If you look at your code, you did not copy it correctly. Right now, the parsed code is:
Code:
.. id="MediaPlayer" width=320 height=286
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Microsoft® Windows® Media Player components..."
type="application/x-oleobject"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab..Version=6,4,7,1112">
<param name="filename" VALUE="http://home.ripway.com/2005-10/458592/ParagonX9-Sonic3BossBattle.mp3">
<param name="autoStart" VALUE="true">               
<param name="showControls" VALUE="true">
<param name="ShowStatusBar" value="true">
<param name="Autorewind" VALUE="true">
<param name="ShowDisplay" VALUE="false">   
<embed allowScriptAccess="never"src="http://home.ripway.com/2005-10/458592/ParagonX9-Sonic3BossBattle.mp3" WIDTH=320 HEIGHT=286 type="application/x-mplayer2" name=MediaPlayer autostart=1 showc..0 showstatusbar=1 autorewind=1 showdisplay=0>
</embed></object>
DeltaOmega553



Joined: 03 Oct 2005
Posts: 9

PostPosted: Tue Oct 04, 2005 10:31 am     Reply with quote

Something's not right.

I copy and pasted this:

<object id="MediaPlayer" width=320 height=286
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Microsoft® Windows® Media Player components..."
type="application/x-oleobject"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
<param name="filename" VALUE="interview_fox_video.asx">
<param name="autoStart" VALUE="true">
<param name="showControls" VALUE="true">
<param name="ShowStatusBar" value="true">
<param name="Autorewind" VALUE="true">
<param name="ShowDisplay" VALUE="false">
<embed src="interview_fox_video.asx" WIDTH=320 HEIGHT=286 type="application/x-mplayer2" name=MediaPlayer autostart=1 showcontrols=0 showstatusbar=1 autorewind=1 showdisplay=0>
</embed></object>

and replaced "interview_fox_video.asx" with my direct link which is this:

http://home.ripway.com/2005-10/458592/ParagonX9-Sonic3BossBattle.mp3

however once I do that and hit "submit"... the code automatically changes itself to what you pasted to me.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Tue Oct 04, 2005 10:34 am     Reply with quote

You will have to contact myspace and ask them.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> General HTML All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial