Implement @mediabunny/prores extension, add onError callbacks to custom coders, fix visibleRect bug in VideoSample

This commit is contained in:
Vanilagy
2026-06-29 17:15:10 +02:00
parent af618f014a
commit 8ae0f9d09e
42 changed files with 1074 additions and 451 deletions
@@ -68,6 +68,7 @@ const compressFile = async (resource: File | string) => {
bitrate: QUALITY_VERY_LOW,
},
audio: {
codec: 'opus',
bitrate: QUALITY_VERY_LOW,
},
});
-4
View File
@@ -4,7 +4,6 @@ import {
BlobSource,
CanvasSink,
Input,
registerDecoder,
UrlSource,
WrappedAudioBuffer,
WrappedCanvas,
@@ -75,9 +74,6 @@ let volumeMuted = false;
/** === INIT LOGIC === */
import { ProResDecoder } from '../../packages/prores-decoder/src/index.js';
registerDecoder(ProResDecoder);
const initMediaPlayer = async (resource: File | string) => {
try {
// First, dispose any ongoing playback: