eshaz / icecast-metadata-js

Browser and NodeJS packages for playing and reading Icecast compatible streaming audio with realtime metadata updates.
155 stars 20 forks source link

Legacy support #141

Closed lollita closed 1 year ago

lollita commented 1 year ago

Do you can add a option for browser that not support Regex-Groups and Exponentiation (**) ?

eshaz commented 1 year ago

Which module are you asking for: icecast-metadata-player, icecast-metadata-js, or icecast-metadata-stats?

lollita commented 1 year ago

Above all icecast-metadata-js but also icecast-metadata-player-1.13.1.min.js

eshaz commented 1 year ago

Which browser / version are you using?

Generally, I aim for compatibility with the latest standards that are implemented across the latest versions of all browsers. In icecast-metadata-player, there is a lot of modern Javascript functionality that's core to the library's functionality, such as MediaSource, and WebAssembly that may not be compatible with browsers that don't support regex groups and the exponentiation operator.

You're welcome to experiment with the webpack settings to create a build that polyfills the regex groups and exponentiation.

Documentation for webpack

lollita commented 1 year ago

Abandon legacy: also ReadableStream is not supported. ty.