agersant / polaris

Polaris is a music streaming application, designed to let you enjoy your music collection from any computer or mobile device.
MIT License
1.45k stars 83 forks source link

Support for WebM (and MKA) files #218

Open hdorio opened 2 weeks ago

hdorio commented 2 weeks ago

I'd like to request support for WebM and MKA files (especially those containing Opus audio) in Polaris.

Many modern web browsers, including Google Chrome and Firefox, natively support WebM. To my knowledge, MKA files (featuring Vorbis or Opus audio) are supported exclusively by Google Chrome. Since WebM is a limited subset of Matroska files, it is unclear why Firefox opted to support only WebM and not MKA.

As Polaris is designed to play audio files supported by web browsers, it would be great if these formats could also be added to the list of playable file types.

Additionally, here is a video using the filebrowser project where you can see the HTML <audio> (or <video>) tag in action, playing audio files (including WebM and MKA) on both Google Chrome and Firefox.

agersant commented 2 weeks ago

Thanks for the good suggestion!

Browser support isn't the full story, as the Polaris server also needs to be able to read the format to extract song metadata. I am going to evaluate https://github.com/pdeljanov/Symphonia which is hopefully more complete than the current collage of libraries we are using.