mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
More work
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
||||
BlobSource,
|
||||
CanvasSink,
|
||||
Input,
|
||||
registerDecoder,
|
||||
UrlSource,
|
||||
WrappedAudioBuffer,
|
||||
WrappedCanvas,
|
||||
@@ -69,6 +70,9 @@ 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:
|
||||
@@ -189,7 +193,7 @@ const initMediaPlayer = async (resource: File | string) => {
|
||||
|
||||
if (audioContext.state === 'running') {
|
||||
// Start playback automatically if the audio context permits
|
||||
await play();
|
||||
// await play();
|
||||
}
|
||||
|
||||
loadingElement.style.display = 'none';
|
||||
|
||||
Reference in New Issue
Block a user