Results 1 to 3 of 3

Thread: Streaming media

  1. #1
    Join Date
    Dec 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Streaming media

    I have an .mp3 file that I would like to play in the background of a page. I want to set it up as streaming audio rather than just embedding it (It's 3MB).

    How do I go about doing it? Are there codes to type, or do I need a software?

    If software is required, can someone recommend one under $40 with an easy learning curve?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If the user's browser supports HTML 5 audio or is IE less than 9 and has the Media Player plugin (this covers almost all modern browsers), this script might do:

    http://www.dynamicdrive.com/forums/s...275#post265275

    I know Media Player automatically streams long files, and I think - though I'm not certain that HTML 5 audio does the same.

    For legacy browsers (Like IE 4 and very early Netscape/Mozilla), a simple bgsound tag or embed will be used. These do not stream.

    Still under development for touchscreen devices. If you have one to test on and are willing to work with me on that part, we can get that working as well.

    There are also:

    http://www.jplayer.org/

    http://www.schillmania.com/projects/soundmanager2/

    But I'm unfamiliar with them. However, they each claim to be able to do that, and with a Flash fall back.


    This article may be of interest:

    http://www.bdwrekordings.com/article...ing-html5.html
    Last edited by jscheuer1; 12-27-2011 at 03:45 PM. Reason: add another alternative
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Note: this is an old discussion, but in case anyone else has similar questions, I wanted to add a bit of information also.

    "Streaming" as a technical term refers to sending out bits of information for an audio and/or video signal from a server rather than sending out a file. This is what, for example, internet radio stations do. It requires special software (often special hardware) and is expensive, complicated, and probably not needed for 3mb files. The only real advantage (other than the possibility to coordinate what everyone hears-- eg, the radio station idea) is that you can make it more difficult to have your content stolen since there are no files. It's still possible for someone to take it, but it's not as easy.

    What would probably work best in this case is something like John suggests where the media starts playing before it's loaded entirely. But that is technically not "streaming" in case that's what the original question was about, or if someone finds this thread while trying to solve their own problem and is looking for 'real' streaming.

    If anyone does find this and has more questions, reply here and I can add some more detail if needed. John's post is probably the most immediately helpful though.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •