MCPcopy Index your code
hub / github.com/cookpete/react-player / patterns.ts

File patterns.ts

src/patterns.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1export const AUDIO_EXTENSIONS =
2 /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
3export const VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i;
4export const HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;

Callers

nothing calls this directly

Calls 1

canPlayFileFunction · 0.85

Tested by

no test coverage detected