mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-02 05:13:50 +02:00
What a mess
This commit is contained in:
@@ -2,7 +2,6 @@ import {
|
|||||||
ALL_FORMATS,
|
ALL_FORMATS,
|
||||||
AudioBufferSink,
|
AudioBufferSink,
|
||||||
BlobSource,
|
BlobSource,
|
||||||
BufferSource,
|
|
||||||
CanvasSink,
|
CanvasSink,
|
||||||
Input,
|
Input,
|
||||||
UrlSource,
|
UrlSource,
|
||||||
@@ -92,7 +91,7 @@ const initMediaPlayer = async (resource: File | string) => {
|
|||||||
|
|
||||||
// Create an Input from the resource
|
// Create an Input from the resource
|
||||||
const source = resource instanceof File
|
const source = resource instanceof File
|
||||||
? new BufferSource(await resource.arrayBuffer())// new BlobSource(resource)
|
? new BlobSource(resource)
|
||||||
: new UrlSource(resource);
|
: new UrlSource(resource);
|
||||||
const input = new Input({
|
const input = new Input({
|
||||||
source,
|
source,
|
||||||
|
|||||||
Reference in New Issue
Block a user