vidstack / player

UI components and hooks for building video/audio players on the web. Robust, customizable, and accessible. Modern alternative to JW Player and Video.js.
https://vidstack.io
MIT License
1.89k stars 114 forks source link

Auto detect FLAC file #1308

Closed empz closed 3 weeks ago

empz commented 3 weeks ago

HTML native audio element can play .flac files. I'm setting the src property of the player with a full URL including the file extension (.flac). The player is not able to recognize the type and fails to render.

https://www.vidstack.io/docs/player/api/providers/audio

The audio source URL should include on the following file extensions: m4a, m4b, mp4a, mpga, mp2, mp2a, mp3, m2a, m3a, wav, weba, aac, oga, spx.

If the source URL does not contain a file extension, you must provide one of the following type hints: audio/mpeg, audio/ogg, audio/3gp, audio/mp4, audio/webm, audio/flac, audio/object.

Why is not flac included in the auto-detected file extension list if Vidstack supports audio/flac source type?