Skip to content

Commit

Permalink
fix(player): detect flac audio ext
Browse files Browse the repository at this point in the history
closes #1308
  • Loading branch information
mihar-22 committed Jun 11, 2024
1 parent 03f7718 commit 5359e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vidstack/src/utils/mime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { canPlayHLSNatively } from './support';

// https://github.com/cookpete/react-player/blob/master/src/patterns.js#L16
export const AUDIO_EXTENSIONS =
/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx|flac)($|\?)/i;

// TODO: We'll need to extend this later.
export const AUDIO_TYPES = new Set<string>([
Expand Down

0 comments on commit 5359e80

Please sign in to comment.