Freeedle / Essential-Audio-Player

Essential Audio Player JS is a simple, clean and minimal JavaScript / HTML5 / CSS web audio player.
https://essential-audio-player.net
Other
41 stars 3 forks source link

Not working for AAC IceCast streams #1

Closed MarshmelloSUCKS closed 3 years ago

MarshmelloSUCKS commented 3 years ago

I run an IceCast stream and would like to use Essential Audio Player instead of the native HTML5 player. However, when I set it up and press play, it just loads. With the console open, I get the following: HEAD https://ice1.msx.gay:8443/kmsx.aac?random=927 [HTTP/1.0 400 Bad Request 124ms] Below is the embed code for the player: <div class="essential_audio" data-url="https://ice1.msx.gay:8443/kmsx.aac">Looks like your browser doesn't support the player. Use the link below to play in your own player.</div> essential_audio.css and essential_audio.js are linked to in the head of the page. The page is here if you want to take a look for yourself.

Freeedle commented 3 years ago

The answer is: The way the script requests audio files is failing with streams. This is indeed a weak spot in the player, but fixing it would mean to rewrite the entire code. Perhaps in a future release... Sorry for now.