process videos on web with webcodecs

This commit is contained in:
Samuel Newman
2025-11-27 16:31:19 +02:00
parent d0649e9a9e
commit 0a7209c623
13 changed files with 477 additions and 162 deletions
+4
View File
@@ -7,6 +7,10 @@ import {extToMime} from './util'
const MIN_SIZE_FOR_COMPRESSION = 25 // 25mb
export function hasWebCodecs(): boolean {
throw new Error('Native does not have WebCodecs.')
}
export async function compressVideo(
file: ImagePickerAsset,
opts?: {