Skip to content

fix: recognize Opus audio sources by extension - #1865

Open
ArianMoeini wants to merge 1 commit into
vidstack:mainfrom
ArianMoeini:fix/detect-opus-audio-sources
Open

ArianMoeini wants to merge 1 commit into
vidstack:mainfrom
ArianMoeini:fix/detect-opus-audio-sources

Conversation

@ArianMoeini

Copy link
Copy Markdown

Related

Addresses #1854.

Description

Recognize .opus URLs as audio sources, including URLs with query parameters. This lets source selection choose the audio provider before falling back to a HEAD response whose MIME type may be missing or incorrect. The change is limited to Opus; the separate .ogg classification raised in the issue discussion is left for its own decision.

Ready?

Yes. The new regression test failed before the fix and passes now. Vidstack's full package suite passes (64 tests across 15 files), as do the package type check and formatting check.

Anything Else?

I verified source classification locally; I did not test playback with the reporter's remote Opus file.

Review Process

Please confirm .opus URLs select the audio provider in the reporter's reproduction and on a browser that supports the file's codec.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant