dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Streaming Radio Player Code

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    12

    Streaming Radio Player Code

    Hello All,
    I found the following code for generating a radio player for mobile devices on the web:

    <button onClick="document.getElementById('audio').play();document.getElementByID('audio').volume=1;">Play</button>
    <button onClick="document.getElementById('audio').pause()">Pause</button>
    <audio id="audio">
    <source src="http://Put your site name here:Put your radio station your number here/"/>
    </audio>

    The interface is generated but it does not play anything after entering my site url and radio station port number in the appropriate place. Please explain what else is needed to make this code work. Thanks in advance.

  2. #2
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    <audio> doesn't handle stream, only files, whatever you found is garbage.

  3. #3
    Join Date
    Feb 2013
    Posts
    12
    Hi, thanks for replying. If "<audio> doesn't handle stream, only files " what would handle streams? Thanks in advance for your help.

  4. #4
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    flash players, <embeds> like WMP, java, binary apps, and silverlite.

    look into jwplayer, or flowplayer.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles