Comments (4)
You can play an icecast stream in an <audio>
tag as long as the stream is based on a codec that your browser can read. Just put its url in the src
attribute (<audio>
or <source>
).
AFAIK, the #6 PR is useful for a a pure JS player that can use icecast metadata (title, etc.) in the stream, the PR is being reviewed by Icecast team.
from icecast-server.
Thanks @jucrouzet for your comment.
I understand that putting the URL source in the audio tag should play the stream, but in certain cases the container + codec is not supported natively in the browser (canPlayType). It is supported via MSE (isTypeSupported).
For example, MS Edge supports WebM, VP9 and Opus via MSE but not natively. Please see here - https://blogs.windows.com/msedgedev/2016/04/18/webm-vp9-and-opus-support-in-microsoft-edge/.
Hence the need to use MSE if one wishes to use open source royalty free container + codecs.
from icecast-server.
Well, yep, that's one use case for the pure JS / MSE player I'm doing. But yep, it needs #6 to be merge as it needs chunks to be downloaded via XHR/Fetch, so it needs CORS.
from icecast-server.
Is there a pure Javascript based HTML5 player that can play Icecast streams using Media Source Extensions?
Media Source Extensions are not necessary to play an Icecast stream at HTMLMediaElement
. I streamed 8 hours of audio using FetchEvent.respondWith(fetch('/path/to/icecast/stream'))
https://bugs.chromium.org/p/chromium/issues/detail?id=1161429#c44.
from icecast-server.
Related Issues (20)
- Not able to clone "Connection timed out" Error HOT 2
- Point listeners to different listener URL HOT 2
- JSON stats http url not automatically redirecting to secure https HOT 3
- Invalid submodules HOT 4
- status-json.xsl not working HOT 1
- Silently fails to run on port 443 HOT 1
- Artist, title and album all together HOT 2
- Idea: use UDP w/Multicast for LAN setups HOT 1
- Mount Points Keep Failing Randomly HOT 4
- Icecast xml problem HOT 2
- Icecast randomly spikes to 100% cpu usage. HOT 4
- IceCast2 make point to connect Rivendell HOT 2
- Submodule common is empty HOT 1
- Request: Make status-json.xslt a real JSON REST API endpoint
- /admin/listclients with URL authentication returns 403 Forbidden Mountpoint in use
- icecast2 - with ssl no metadata, without ssl metadata ok. HOT 1
- List Clients - feature request
- Under heavy concurrency, there is a large number of timeouts occurring in the audio streams.
- Replacing <on-connect> with <event> in my Icecast.xml config file HOT 1
- Dead? HOT 1
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-server.