| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #2 (permalink) |
| NamePros Regular Join Date: Aug 2002
Posts: 650
![]() | <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 |
| |
| | THREAD STARTER #3 (permalink) |
| New Member Join Date: Jan 2003
Posts: 16
![]() | 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... |
| |
| | #6 (permalink) |
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() | 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. |
| |
| | #7 (permalink) |
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() | 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? |
| |
| | #9 (permalink) |
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() | 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> |
| |
| | #11 (permalink) |
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() | 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. |
| |