Lossless Audio in the Browser
Audiophiles often assume that web browsers degrade audio quality. While true for compressed streaming platforms (Spotify Web Player caps at 256kbps AAC), a local-first player like uMediaPlay handles audio differently.
FLAC Support
FLAC (Free Lossless Audio Codec) is fully supported natively by Chrome, Firefox, and Edge. Apple added FLAC support to Safari in macOS High Sierra. When you open a local FLAC file, the browser decodes the mathematically perfect audio data exactly as a desktop application like Foobar2000 would.
The Sample Rate Limitation
The only hurdle in browser-based audiophile playback is the OS mixer. By default, browsers output audio through the operating system's shared audio mixer (e.g., Windows Audio Session API shared mode, or CoreAudio). If your OS is set to output 48kHz/16-bit, but you play a 96kHz/24-bit FLAC file in the browser, the OS mixer will silently resample it down to 48kHz.
Browsers currently lack a standard API for "Exclusive Mode" (WASAPI Exclusive / CoreAudio Hog Mode), which would allow the browser to take direct control of the DAC to automatically switch the hardware sample rate. Therefore, to get true bit-perfect playback from a browser, you must manually ensure your OS output settings match the sample rate of your source file.