-1

My next challenge is to build a live streaming radio station.

I am familiar with <audio> element of HTML5 also I did a bit research on how other people implemented such a task.

All my founding were like 5 years old (listed below), so I think I might miss something, or just people are not listening to online radio stations anymore?!

Set up Html5 Audio Radio Player.

The tutorial uses jPlayer (a jQuery library) and Icecast (a free server for streaming multimedia) but the article is 7 years old.

Is anybody have a better clue of how to start tackling this ?

  • There is a javascript/node library for icecast streams here https://www.npmjs.com/package/icecast – Joshua Terrill Nov 29 '16 at 20:09
  • This other question looks similar https://stackoverflow.com/questions/74751390/what-is-the-best-way-to-stream-audio-to-the-browser-chunk-by-chunk-with-javacr/74768868#74768868 – Barak Binyamin Dec 13 '22 at 21:07

1 Answers1

1

Probably not the answer you want, but I did this a couple years ago with icecast and it worked fine and wasn't too hard, nor too inflexible to mold into modern webpages. It gave me a live audio stream in the proper format (m3u i think). As far as how you present that stream, that'll be more web-design oriented, but you can just open that link that comes from icecast in a webserver so it's not like you're trying to make a square peg fit in a round hole, it's not an obscure standard whatever icecast is spitting out.

I would suggest getting icecast set up and getting a stream working and then working through the web player aspect after that. Maybe there's something newer than icecast, but it does its job fine.

chairmanmow
  • 649
  • 7
  • 20
  • Hi, can u please explain or tell me step by step or checklist to start the setup? @chairmanmow – Briant Stevanus Jul 24 '21 at 17:25
  • @BriantStevanus Been a while since I did this but happy to help if you're stuck, but to start official docs are here https://www.icecast.org/docs/icecast-trunk/basic_setup/ ... The basic mechanics are you install/run icecast on server and there will be a web server running on port 8000 (default) where you can configure/see some things - then on another computer where you're streaming from you'd have a client that pipes your audio to the server, I used 'butt' on mac, there are others for other OS's I believe. – chairmanmow Jul 25 '21 at 18:26