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 2 of 2
  1. #1
    DMN
    DMN is offline
    New Coder
    Join Date
    Dec 2012
    Posts
    18
    Thanks
    1
    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/"/>
    </audio>

    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
    Location
    Urbana
    Posts
    4,188
    Thanks
    10
    Thanked 569 Times in 550 Posts
    try looking into jwpayer, and flowplayer.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/1/19) IE7:0.2, IE8:6.7, IE11:7.4, IE9:3.8, IE10:4.4, FF:18.3, CH:43.6, SF:7.8, MOBILE:27.5


  •  

    Posting Permissions

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