Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Feb 2009
    Posts
    24
    Thanks
    1
    Thanked 0 Times in 0 Posts

    HTML 5 w/javascript using <audio> tag

    Hi all,

    Fast question. I can play audio (and video) using the HTML 5.0 <video> and <audio> tags just fine. I can stop/play/pause etc just fine.

    My question is this;

    I am currently using Quicktime to play Shoutcast audio streams, can I use the <audio> tag to play streams?

    ~Kam (^8*

  • #2
    New Coder
    Join Date
    Feb 2009
    Posts
    24
    Thanks
    1
    Thanked 0 Times in 0 Posts
    For example, I want to play the following URL from shoutcast

    http://yp.shoutcast.com/sbin/tunein-station.pls?id=6807

  • #3
    Regular Coder
    Join Date
    Feb 2009
    Location
    Wheeling, IL
    Posts
    358
    Thanks
    5
    Thanked 62 Times in 60 Posts
    From the looks of it, it doesn't seem like it. It is likely that the play would stop automatically as soon as it starts, considering the audio stream does not have a start/end. Then again, I might be wrong, though considering the specification doesn't mention anything about such support either, it's more likely that it won't work rather than it will.

    Additionally, keep in mind that at the moment it seems that only FireFox and Chrome (nightly builds for both) support the audio tag... and that only partially, so there really isn't that much testing that can be done at this point. Though if you have any of the nightly builds and a link to streaming audio with OGG output... you can just as easily make a simple test page (Probably take about 15 seconds to do) and test it yourself.
    The way to success is to assume that there are no impossible things. After all, if you think something is impossible, you will not even try to do it.

    How to ask smart questions?


  •  

    Posting Permissions

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