+ Reply to Thread
Results 1 to 6 of 6

Thread: Streaming Audio

  1. #1
    kaitia's Avatar
    kaitia is offline x10Hosting Member kaitia is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    7

    Streaming Audio

    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>

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: Streaming Audio

    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  3. #3
    kaitia's Avatar
    kaitia is offline x10Hosting Member kaitia is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    7

    Re: Streaming Audio

    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...

  4. #4
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,998

    Re: Streaming Audio

    Quote Originally Posted by kaitia View Post
    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).


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  5. #5
    khmerguy is offline x10Hosting Member khmerguy is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    1

    Re: Streaming Audio

    Try to google for "Steaming flash mp3 player" or some software that can embed mp3 in flash player like:

    http://www.flashmusicstudio.com/,

    Flash MP3 Player Builder or

    Swish Jukebox.
    Last edited by khmerguy; 05-08-2009 at 09:03 PM.

  6. #6
    OdieusG is offline x10Hosting Member OdieusG is an unknown quantity at this point
    Join Date
    Jan 2009
    Location
    Bangor, Maine
    Posts
    50

    Re: Streaming Audio

    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 ;)

+ Reply to Thread

Similar Threads

  1. Streaming Audio help
    By pats_place in forum Free Hosting
    Replies: 0
    Last Post: 12-02-2008, 01:55 PM
  2. Help with Streaming audio
    By kaozskyblade in forum Scripts & 3rd Party Apps
    Replies: 6
    Last Post: 04-30-2008, 11:00 AM
  3. Audio output pins on CDROM useless without a Play button??
    By abhishekh in forum Computers & Technology
    Replies: 3
    Last Post: 04-22-2008, 03:11 PM
  4. SB 7.1 Onboard!
    By Burak in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 07-30-2005, 03:33 AM
  5. The Codec Thread
    By S.D in forum Off Topic
    Replies: 0
    Last Post: 03-29-2005, 01:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers