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

    Handle Radio Stream

    Hi All,
    I want to create a JavaScript based radio player that can be played on all websites including those on mobile devices. I was able to generate the interface to the player with JavaScript and then tried to handle the radio stream with the source attribute of HTML5 audio element as follows:

    <audio id="audio">
    <source src="http://Put your hosting company url here:Put your port number here/"/>

    The source attribute takes the url of the radio hosting company and the port they assign to their station. Unfortunate the audio element of HTML5 only handles files, not streams. I have searched for javascript radio player code on the web but no luck so far. Can someone please point me to a site if there is one that talks about this. Thanks in advance.

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Thanked 608 Times in 588 Posts
    try looking into jwpayer, and flowplayer.
    my site (updated 2014/10/20)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.3, IE11:9.2, IE9:2.7, IE10:2.6, FF:16.8, CH:47.5, SF:7.8, NON-MOUSE:37%


    Posting Permissions

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