We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
extToMime
1 parent 8cded43 commit 66526a8Copy full SHA for 66526a8
src/lib/media/video/util.ts
@@ -40,7 +40,7 @@ export function mimeToExt(mimeType: SupportedMimeTypes | (string & {})) {
40
}
41
42
export function extToMime(ext: string) {
43
- switch (ext) {
+ switch (ext.toLowerCase()) {
44
case 'mp4':
45
return 'video/mp4'
46
case 'webm':
0 commit comments