Comments (5)
Your Icecast CORS policy is set up correctly. Are you serving your website using HTTPS? Browsers will block requests to HTTP resources (your Icecast server) if they are being referenced from a HTTPS origin. Disabling the Chrome web security is likely what is allowing these requests to succeed. The simplest way to fix this would be to enable HTTPS on your Icecast server: https://icecast.org/docs/icecast-2.4.1/config-file.html#path
from icecast-metadata-js.
Serving website over http and https, in this case accessing over http.
If I access website over https and stream over http it says
icecast-metadata-player-0.0.3.min.js:20 Mixed Content: The page at 'https://websiteurl' was loaded over HTTPS, but requested an insecure resource 'http://streamurl'. This request has been blocked; the content must be served over HTTPS.
I'm doing various tests... (all failed until now)
from icecast-metadata-js.
Since you're serving on both http and https, this could be happening when you switch over to http: https://superuser.com/questions/565409/how-to-stop-an-automatic-redirect-from-http-to-https-in-chrome
from icecast-metadata-js.
Quite sure i'm accessing it over http, it says "not secure" and if I copy and paste the url it's "http://"
Reinstalled all the stream package (icecast, butt, etc) in another computer in another network just to test but same results.
from icecast-metadata-js.
Analyzed some of the stream found on your demo page and I found a solution: All the demo servers i tried were "Icecast 2.4.0-kh*", in fact the only server which works for me is
Server: Icecast 2.4.0-kh15
Here is the CURL log:
curl -H "Icy-MetaData: 1" -v "http://url:port/stream"
* Trying IP...
* TCP_NODELAY set
* Connected to IP (IP) port #### (#0)
> GET /stream HTTP/1.1
> Host: IP:port
> User-Agent: curl/7.64.1
> Accept: */*
> Icy-MetaData: 1
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Content-Type: audio/mpeg
< Date: Sat, 23 Jan 2021 16:24:30 GMT
< icy-br:128
< ice-audio-info: ice-bitrate=128;ice-channels=2;ice-samplerate=44100
< icy-name:none
< icy-pub:0
< Server: Icecast 2.4.0-kh15
< Cache-Control: no-cache, no-store
< Expires: Mon, 26 Jul 1997 05:00:00 GMT
< Connection: Close
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Headers: Origin, Accept, X-Requested-With, Content-Type, Icy-MetaData
< Access-Control-Allow-Methods: GET, OPTIONS, SOURCE, PUT, HEAD, STATS
< icy-metaint:16000
Don't know why it's happening :(
from icecast-metadata-js.
Related Issues (20)
- Station name from metadata? HOT 2
- Deferred module loading? HOT 1
- 'IcecastReadableStream' is not exported from 'icecast-metadata-js' (imported as 'IcecastReadableStream') HOT 8
- webaudio analyser ? HOT 3
- Full screen visualizer in demo
- multiple instances of metadata HOT 4
- icecast-metadata-stats NodeJS support HOT 6
- Authenticated streams not working? HOT 4
- CORS or header problem from icecast2 HOT 3
- iOS does not recognize playback correctly
- AbortError with streams from Icecast 2.4.0-kh22 HOT 10
- Uncaught ReferenceError: player is not defined HOT 8
- Play and replay issue on iOS HOT 9
- icecast-metadata-player retry / reconnect logic not working in iOS 17 HOT 1
- icecast-metadata-player - navigator.mediaSession.metadata not working in iOS HOT 3
- Pass custom parameter into icecast-metadata-player-1.17.1.main.min.js HOT 5
- Writing metadata to a file HOT 2
- ReferenceError: Worker is not defined HOT 5
- Audio stops playing after 5 seconds. HOT 4
- Unable to resume audio on iOS 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icecast-metadata-js.