Use JavaScript for example
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
[HTML][/HTML]
and something like
[HTML]bgsound="javascript:playSound('song location')"[/HTML]
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
I'm confused. Anyone would be able to view the source of the HTML page, see the location of the sound file, and download it directly? You would need to stream media somehow ... a streaming server? I'm not exactly sure how it works :)
cscgal
The Queen of DaniWeb
19,437 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 231
Do you even know what "downloading" is? (Sorry for being abrasive.) It is impossible for a user's computer to play the music that is on your server without having downloaded it first.
What you want is impossible.
Rashakil Fol
Super Senior Demiposter
2,658 posts since Jun 2005
Reputation Points: 1,135
Solved Threads: 177
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
That is an example how it can be done. You dummy.
Press a button and woalaa music.
There been already 3 people which try to help you and still you did not state what exactly you whant
Next time please read full sugestion and not part of it!!!
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
Wow, calling someone a name is hardly productive.
You could try using Flash to play the music, but it is still cached. My suggestion is to not add music to your site. It will slow the load of the site down and likely annoy people who don't want to hear it.
If you insist on having music, let the user decide if they want to hear it, don't force it on them.
rus
Junior Poster in Training
50 posts since Dec 2004
Reputation Points: 11
Solved Threads: 1
Since the music must be on the user's computer to be played, it must be downloaded.
There is no way to keep a smart user from finding the file the browser saved to their hard drive and copying it to another file.
Better to register your copyright, so if someone else steals your creation, you can sue.
If it's not your music, and it is not in the public domain, you are infringing if you use it in your site, whether they save the file or not.
MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182