Code Monkey home page Code Monkey logo

Comments (4)

jucrouzet avatar jucrouzet commented on July 29, 2024

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.

Brahmasmi avatar Brahmasmi commented on July 29, 2024

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.

jucrouzet avatar jucrouzet commented on July 29, 2024

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.

guest271314 avatar guest271314 commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.