[Video] use correct max size (#5245)
Co-authored-by: Hailey <me@haileyok.com>
This commit is contained in:
@@ -3,9 +3,9 @@ import {ImagePickerAsset} from 'expo-image-picker'
|
||||
import {VideoTooLargeError} from 'lib/media/video/errors'
|
||||
import {CompressedVideo} from './types'
|
||||
|
||||
const MAX_VIDEO_SIZE = 1024 * 1024 * 100 // 100MB
|
||||
const MAX_VIDEO_SIZE = 1024 * 1024 * 50 // 50mb
|
||||
|
||||
// doesn't actually compress, but throws if >100MB
|
||||
// doesn't actually compress, converts to ArrayBuffer
|
||||
export async function compressVideo(
|
||||
asset: ImagePickerAsset,
|
||||
_opts?: {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export class VideoTooLargeError extends Error {
|
||||
constructor() {
|
||||
super('Videos cannot be larger than 100MB')
|
||||
super('Videos cannot be larger than 50mb')
|
||||
this.name = 'VideoTooLargeError'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user