View Full Version : mp3's-play file
03-07-2003, 09:44 AM
how do you get an mp3 to only play when the link has been clicked, and also have a seperate link for downloading. mO
03-11-2003, 06:32 PM
To have the MP3 play when you click a link you would or could have a seperate html file that has the mp3 embeded in it and the link would go to the page. then to have the a link to download the song you just link directly to the mp3 file.
That is the simplist way to do it. There are more elaborate ways for sure. Happy Coding.
03-27-2003, 05:21 AM
If you wanted a bit more control you could investigate using Flash (I have found it to be the most practical for this kind of thing).
It will enable you to control streaming or preloading, volume, etc. You can probably find pre-built jukebox systems at www.flashkit.com if you don't want to build it yourself.
03-27-2003, 06:04 PM
I have follwed your instructions and it works, thank you,
but I would like to have a picture of the artist in view while
the song is playing. How do I do that?
03-28-2003, 06:58 AM
If your using flash that is simple as a motion tween :)
Just stick your persons image next to the page with a file.
Same with HTML too, mind you, I would embed the music into a page that is to play something. Simply using a href tags, can make some browsers download the instead.
Have a peep at www.w3.org for more information on embedding objects into your page.
03-28-2003, 02:02 PM
I don't quite understand a sample of code would help. here is what I am currently doing.
<BODY><IMG SRC="/images/toya/Toya.jpg" WIDTH="640" HEIGHT="369" BORDER="0">
<P ALIGN="LEFT">Listen to Toya's smash hit I Do<A
HREF="realaudio/toya.mp3"> Click Here </A> </P> </BODY>
03-29-2003, 01:01 AM
You can make streaming meta files for mp3 just like you can for real audio - you link to a file called "mysong.m3u" which is a text-file containing a fully-qualified URI for the actual mp3 file; in most cases that will start the default mp3 handling application and open a stream, or open up IE6's media sidebar, or whatever.
I do this on my music section (http://www.brothercake.com/music/breakbeat.php) and it seems to work. You can make separate download links using PHP, like this thread. (http://www.codingforums.com/showthread.php?s=&threadid=16385)
03-29-2003, 10:37 AM
Have a look at Helix Player - I think it does what you are looking for.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.