fix mime checks (#5118)

This commit is contained in:
Samuel Newman
2024-09-03 20:55:10 +01:00
committed by GitHub
parent ea4d8bc1ab
commit 0bd0146efb
4 changed files with 28 additions and 14 deletions
+9
View File
@@ -136,3 +136,12 @@ export const GIF_FEATURED = (params: string) =>
`${GIF_SERVICE}/tenor/v2/featured?${params}`
export const MAX_LABELERS = 20
export const SUPPORTED_MIME_TYPES = [
'video/mp4',
'video/mpeg',
'video/webm',
'video/quicktime',
] as const
export type SupportedMimeTypes = (typeof SUPPORTED_MIME_TYPES)[number]
+1 -1
View File
@@ -30,5 +30,5 @@ export async function compressVideo(
const info = await getVideoMetaData(compressed)
return {uri: compressed, size: info.size, mimeType: `video/${info.extension}`}
return {uri: compressed, size: info.size, mimeType: `video/mp4`}
}