Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

play remote FLAC File #31

Closed
veso266 opened this issue Apr 24, 2017 · 1 comment
Closed

play remote FLAC File #31

veso266 opened this issue Apr 24, 2017 · 1 comment

Comments

@veso266
Copy link

veso266 commented Apr 24, 2017

Hi I would like to play this flac file: http://5.35.250.101:8000/radio700-mpx.flac but it doesn't work (with same-orogin policy turned off in chrome I get: HEAD http://5.35.250.101:8000/radio700-mpx.flac 400 (Bad Request)

my code is as follows:
<!--- Load FLAC PLAYER ----->
<script src="flac/aurora.js"></script>
<script src="flac/flac.js"></script>
<script>
var player = AV.Player.fromURL('http://5.35.250.101:8000/radio700-mpx.flac');
player.play();
</script>

Thanks for Anwsering and Best Regards

@bradisbell
Copy link

Icecast doesn't support HEAD requests, and therefore doesn't support CORS. There's some work being done on this, but it doesn't exist today.

In short, there is nothing you do will be able to get around this client-side. You would need to proxy the stream server-side and set it up for CORS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants