NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Music on a page....

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 01-15-2003, 06:20 PM THREAD STARTER               #1 (permalink)
New Member
Join Date: Jan 2003
Posts: 16
GamerX is an unknown quantity at this point
 



Music on a page....


I have dreamweaver and wen i choose "audioembed" to add sound or music in my case it doesnt play it. Whats the exact code to play a song on the page???
GamerX is offline  
Old 01-15-2003, 07:33 PM   #2 (permalink)
NamePros Regular
Join Date: Aug 2002
Posts: 650
bobbi is an unknown quantity at this point
 



<EMBED SRC="yourfilehere.mid" AUTOSTART=FALSE LOOP=FALSE WIDTH=145 HEIGHT=55 ALIGN="CENTER">
</EMBED>

here is a link that will help you out as well

http://htmlgoodies.earthweb.com/tutors/embed.html

[=
__________________
www.webdevtalk.com
bobbi is offline  
Old 01-15-2003, 08:26 PM THREAD STARTER               #3 (permalink)
New Member
Join Date: Jan 2003
Posts: 16
GamerX is an unknown quantity at this point
 



still not workin...


That doesnt seem to work for me. Let me be a bit more specific on what i need and if the code even exists for it i want to play a regular sound file like one i downloaded off a peer to peer network program onto my site, i hae tried the code given and it doesnt work the page either immediately dissapears or doesnt come up at all...
GamerX is offline  
Old 01-16-2003, 03:22 AM   #4 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
 



Are you trying to play an mp3 file or what type of file are you trying to play?
deadserious is offline  
Old 01-16-2003, 12:05 PM THREAD STARTER               #5 (permalink)
New Member
Join Date: Jan 2003
Posts: 16
GamerX is an unknown quantity at this point
 



yea...


an MP3 file i believe.
GamerX is offline  
Old 01-16-2003, 03:16 PM   #6 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
 



Can you show us the code you're trying to use


If you're wanting to stream the music when the page loads I think the server would have to be set up to allow that or the user would have to download the song before it would play.
deadserious is offline  
Old 01-16-2003, 03:28 PM   #7 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
 



By the way did you change AUTOSTART=FALSE to AUTOSTART=TRUE ?

Also you can just create a link to the mp3 file and it should automatically pull up the users default player and start playing or downloading the song. But I think you want to have it embedded in your webpage so it plays when the page is loaded right?
deadserious is offline  
Old 01-16-2003, 03:34 PM THREAD STARTER               #8 (permalink)
New Member
Join Date: Jan 2003
Posts: 16
GamerX is an unknown quantity at this point
 



yes..


yes thats what i want. I was using the code given to me in this post but i dont know if im using it right or something
GamerX is offline  
Old 01-16-2003, 03:41 PM   #9 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
 



Here's another thing you can try if you want:

If you open up a blank text file and add the url to your mp3 to it
example: http://www.yoursiteurlhere.com/yourmp3.mp3

Save it with a .m3u or .pls extension
example: playlist.m3u

That may stop the user from having to download it before they can listen to it.

Now you would just link to the .m3u or .pls file you creaetd instead of the actual mp3 file.
????: NamePros.com http://www.namepros.com/programming/14429-music-on-a-page.html

You can also try embedding it into your page so it plays when the page loads like this:

<html>
<body>
<EMBED SRC="yourfilehere.m3u" AUTOSTART=TRUE LOOP=FALSE ></EMBED>
</body>
</html>
deadserious is offline  
Old 01-16-2003, 04:10 PM THREAD STARTER               #10 (permalink)
New Member
Join Date: Jan 2003
Posts: 16
GamerX is an unknown quantity at this point
 



ummm...


i dont get the whole extension process who do i go about getting one? if its not too much trouble can u go into a bit more detail
GamerX is offline  
Old 01-16-2003, 04:37 PM   #11 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
 



Just open a blank text file with notepad or something.

Then put the url to the mp3 file in it so all it has on one line would be:

http://www.yourdomain.com/yourmp3file.mp3

Then save the file as whateveryouwant.m3u

You can name it anything just make sure you save it with a .m3u extension.

You can do this in notepad by going to File-->Save As--> and then entering whateveryouwant.m3u

Then upload the file to your server.

Then create a test link to the .m3u file you uploaded. Click on it and see if plays for you.
deadserious is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 12:41 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger