How can I get and show meta information (station name, current song, bitrate, etc.) when playing a radio stream with HTML5 audio?

How can I get the current song title, radio station name and other meta information from a radio stream played using Html5?



AudCurs=new Audio();




<button id='play' >Play</button>


thanks for the help


source to share

1 answer

According to the HTML5 and Mozilla standard, there isn't much detail you can get [ 1 , 2 , 3 ].

You can get the sample rate:

var rate = AudCurs.playbackRate;


Your stream probably supports ID3 tags. In this case, you can get more information:

For more details, I would recommend that you implement this on the server side and then get the results using AJAX and JQuery.



All Articles