fix mime checks (#5118)
This commit is contained in:
parent
ea4d8bc1ab
commit
0bd0146efb
4 changed files with 28 additions and 14 deletions
|
@ -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]
|
||||
|
|
|
@ -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`}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue