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

Icecast streams #535

Open
zsaraf opened this issue Oct 23, 2019 · 2 comments
Open

Icecast streams #535

zsaraf opened this issue Oct 23, 2019 · 2 comments
Labels

Comments

@zsaraf
Copy link

zsaraf commented Oct 23, 2019

Hello,

It seems like using OGV.js for icecast streams is not working. OGV.js fails during the options request which doesn't seem like it should be a requirement (and Icecast does not accept OPTION requests).

ogv.js:805 OPTIONS http://stream.id3.fm:8000/djramakc net::ERR_EMPTY_RESPONSE
(anonymous) @ ogv.js:805
load @ ogv.js:768
ogv.js:797 Uncaught (in promise) Error: network error
    at XMLHttpRequest.checkError (ogv.js:797)

Any ideas as to how to configure OGV.js to work with Icecast streams despite the failed OPTION request?

@bvibber
Copy link
Owner

bvibber commented Oct 23, 2019

Unless the hostname and port for the stream are the same as the host web page, CORS headers will be required to read data from the stream. This is an inherent limitation of the web platform at present.

There may be something you can change on the icecast side to support OPTIONS requests, I don't know.

Beware also that concatenated streams are not supported in the Ogg demuxer yet, so depending on how the stream is constructed it may or may not work even if you get it loaded.

@zsaraf
Copy link
Author

zsaraf commented Oct 24, 2019

Thanks for the response. I might try out a different branch of Icecast which allows for OPTIONS requests. Any plans on fixing the second point (concatenated streams) any time soon or no?

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

No branches or pull requests

2 participants