mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 02:43:48 +02:00
Implement @mediabunny/prores extension, add onError callbacks to custom coders, fix visibleRect bug in VideoSample
This commit is contained in:
@@ -68,6 +68,7 @@ const compressFile = async (resource: File | string) => {
|
||||
bitrate: QUALITY_VERY_LOW,
|
||||
},
|
||||
audio: {
|
||||
codec: 'opus',
|
||||
bitrate: QUALITY_VERY_LOW,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user