Streaming Audio

kaitia

New Member
Messages
7
Reaction score
0
Points
0
Aloha folks,

I am been wrestling with this concept for a while now. I have a mp3 that I would like users to be able to listen to. However, I don't want them to be able to download the file.

From my research, I've found that we should be using the object tag since embed is depricated. However, I can not get this thing to work. Below is my code. Could someone let me know what looks wrong?

<object classid="6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/ nsmp2inf.cab#Version=6,0,02,902" width="200" height="20">
<param name="src" value="music/thankyou.mp3">
<param name="controller" value="true">
<param name="autoStart" value="0">
<!--[if !IE]> <-->
<object type="audio/mpeg" data="music/thankyou.mp3" width="200" height="20">
<param name="src" value="music/thankyou.mp3">
<param name="controller" value="true">
<param name="autoStart" value="0">
</object>
<!--> <![endif]-->
</object>
 

kaitia

New Member
Messages
7
Reaction score
0
Points
0
Thanks for the response. I've visited that page already. However, you would then be relying on either Google's player or Yahoo's player. I will incorporate the Google and Yahoo player into my selection.

In the meantime, I was able to get things working. I changed the classid and codec to an older Windows Media Player. Also, I used the full URL for the value:

Previously
-------------
<param name="fileName" value="music.mp3">

Changed
-----------
<param name="fileName" value="http://yoursite.x10blah/directory/music.mp3">

That seemed to work for now. Thanks for the additional info...
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
Thanks for the response. I've visited that page already. However, you would then be relying on either Google's player or Yahoo's player. I will incorporate the Google and Yahoo player into my selection.

In the meantime, I was able to get things working. I changed the classid and codec to an older Windows Media Player. Also, I used the full URL for the value:

Previously
-------------
<param name="fileName" value="music.mp3">

Changed
-----------
<param name="fileName" value="http://yoursite.x10blah/directory/music.mp3">

That seemed to work for now. Thanks for the additional info...

Could just navigate to that url and download the mp3 though.

The problem is almost any player you use will begin downloading the file for playback, but it'll store it in the cache instead of giving the file-download box. The -real- problem is anyone who wants that mp3 knows to either look in the cache, tell Audacity (or their chosen mp3 recording program) to record from the mixer in the system (so they record exactly what they can hear), or they'll look for the embedded url in the page, follow it, and download the file themselves.

I guess what I'm trying to say is make sure it's not a file you'd be upset if some people got a hold of, since if someone wants it, they will be able to get it, one way or another (even without hacking).
 

OdieusG

New Member
Messages
50
Reaction score
0
Points
0
Just because the syntax is depreciated, doesn't mean it's not still available in current browsers....
If you want to see the current specs, which have some syntaxes in there like <button>, this is probably the best workup that I've stumbled upon.....XHTML 5 is still in draft
Code:
http://www.w3.org/TR/html4/cover.html#minitoc
Oh....and the anchor will go to the TOC, a little simplified ;)
 
Top