mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 13:53:53 +02:00
Fix BBB trimmed link
This commit is contained in:
@@ -9,6 +9,9 @@ import {
|
|||||||
QUALITY_VERY_LOW,
|
QUALITY_VERY_LOW,
|
||||||
} from 'mediabunny';
|
} from 'mediabunny';
|
||||||
|
|
||||||
|
import SampleFileUrl from '../../assets/big-buck-bunny-trimmed.mp4';
|
||||||
|
(document.querySelector('#sample-file-download') as HTMLAnchorElement).href = SampleFileUrl;
|
||||||
|
|
||||||
const selectMediaButton = document.querySelector('button') as HTMLButtonElement;
|
const selectMediaButton = document.querySelector('button') as HTMLButtonElement;
|
||||||
const fileNameElement = document.querySelector('#file-name') as HTMLParagraphElement;
|
const fileNameElement = document.querySelector('#file-name') as HTMLParagraphElement;
|
||||||
const horizontalRule = document.querySelector('hr') as HTMLHRElement;
|
const horizontalRule = document.querySelector('hr') as HTMLHRElement;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
Select media file
|
Select media file
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<a href="../../assets/big-buck-bunny-trimmed.mp4" download class="rounded-lg bg-zinc-200 dark:bg-zinc-750 hover:bg-zinc-300 dark:hover:bg-zinc-700 px-5 group grid place-items-center" title="Download sample file">
|
<a id="sample-file-download" download="big-buck-bunny-trimmed.mp4" class="rounded-lg bg-zinc-200 dark:bg-zinc-750 hover:bg-zinc-300 dark:hover:bg-zinc-700 px-5 group grid place-items-center" title="Download sample file">
|
||||||
<img src="../../assets/download-icon.svg" class="opacity-30 group-hover:opacity-80 dark:invert">
|
<img src="../../assets/download-icon.svg" class="opacity-30 group-hover:opacity-80 dark:invert">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
Select media file
|
Select media file
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<a href="../../assets/big-buck-bunny-trimmed.mp4" download class="rounded-lg bg-zinc-200 dark:bg-zinc-750 hover:bg-zinc-300 dark:hover:bg-zinc-700 px-5 group grid place-items-center" title="Download sample file">
|
<a id="sample-file-download" download="big-buck-bunny-trimmed.mp4" class="rounded-lg bg-zinc-200 dark:bg-zinc-750 hover:bg-zinc-300 dark:hover:bg-zinc-700 px-5 group grid place-items-center" title="Download sample file">
|
||||||
<img src="../../assets/download-icon.svg" class="opacity-30 group-hover:opacity-80 dark:invert">
|
<img src="../../assets/download-icon.svg" class="opacity-30 group-hover:opacity-80 dark:invert">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ import {
|
|||||||
WrappedCanvas,
|
WrappedCanvas,
|
||||||
} from 'mediabunny';
|
} from 'mediabunny';
|
||||||
|
|
||||||
|
import SampleFileUrl from '../../assets/big-buck-bunny-trimmed.mp4';
|
||||||
|
(document.querySelector('#sample-file-download') as HTMLAnchorElement).href = SampleFileUrl;
|
||||||
|
|
||||||
const selectMediaButton = document.querySelector('button') as HTMLButtonElement;
|
const selectMediaButton = document.querySelector('button') as HTMLButtonElement;
|
||||||
const fileNameElement = document.querySelector('#file-name') as HTMLParagraphElement;
|
const fileNameElement = document.querySelector('#file-name') as HTMLParagraphElement;
|
||||||
const horizontalRule = document.querySelector('hr') as HTMLHRElement;
|
const horizontalRule = document.querySelector('hr') as HTMLHRElement;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
Select media file
|
Select media file
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<a href="../../assets/big-buck-bunny-trimmed.mp4" download class="rounded-lg bg-zinc-200 dark:bg-zinc-750 hover:bg-zinc-300 dark:hover:bg-zinc-700 px-5 group grid place-items-center" title="Download sample file">
|
<a id="sample-file-download" download="big-buck-bunny-trimmed.mp4" class="rounded-lg bg-zinc-200 dark:bg-zinc-750 hover:bg-zinc-300 dark:hover:bg-zinc-700 px-5 group grid place-items-center" title="Download sample file">
|
||||||
<img src="../../assets/download-icon.svg" class="opacity-30 group-hover:opacity-80 dark:invert">
|
<img src="../../assets/download-icon.svg" class="opacity-30 group-hover:opacity-80 dark:invert">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
import { Input, ALL_FORMATS, BlobSource } from 'mediabunny';
|
import { Input, ALL_FORMATS, BlobSource } from 'mediabunny';
|
||||||
|
|
||||||
|
import SampleFileUrl from '../../assets/big-buck-bunny-trimmed.mp4';
|
||||||
|
(document.querySelector('#sample-file-download') as HTMLAnchorElement).href = SampleFileUrl;
|
||||||
|
|
||||||
const selectMediaButton = document.querySelector('button') as HTMLButtonElement;
|
const selectMediaButton = document.querySelector('button') as HTMLButtonElement;
|
||||||
const fileNameElement = document.querySelector('#file-name') as HTMLParagraphElement;
|
const fileNameElement = document.querySelector('#file-name') as HTMLParagraphElement;
|
||||||
const horizontalRule = document.querySelector('hr') as HTMLHRElement;
|
const horizontalRule = document.querySelector('hr') as HTMLHRElement;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
Select media file
|
Select media file
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<a href="../../assets/big-buck-bunny-trimmed.mp4" download class="rounded-lg bg-gray-200 dark:bg-zinc-750 hover:bg-gray-300 dark:hover:bg-zinc-700 px-5 group grid place-items-center" title="Download sample file">
|
<a id="sample-file-download" download="big-buck-bunny-trimmed.mp4" class="rounded-lg bg-gray-200 dark:bg-zinc-750 hover:bg-gray-300 dark:hover:bg-zinc-700 px-5 group grid place-items-center" title="Download sample file">
|
||||||
<img src="../../assets/download-icon.svg" class="opacity-30 group-hover:opacity-80 dark:invert">
|
<img src="../../assets/download-icon.svg" class="opacity-30 group-hover:opacity-80 dark:invert">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
import { Input, ALL_FORMATS, BlobSource, CanvasSink } from 'mediabunny';
|
import { Input, ALL_FORMATS, BlobSource, CanvasSink } from 'mediabunny';
|
||||||
|
|
||||||
|
import SampleFileUrl from '../../assets/big-buck-bunny-trimmed.mp4';
|
||||||
|
(document.querySelector('#sample-file-download') as HTMLAnchorElement).href = SampleFileUrl;
|
||||||
|
|
||||||
const selectMediaButton = document.querySelector('button') as HTMLButtonElement;
|
const selectMediaButton = document.querySelector('button') as HTMLButtonElement;
|
||||||
const fileNameElement = document.querySelector('#file-name') as HTMLParagraphElement;
|
const fileNameElement = document.querySelector('#file-name') as HTMLParagraphElement;
|
||||||
const horizontalRule = document.querySelector('hr') as HTMLHRElement;
|
const horizontalRule = document.querySelector('hr') as HTMLHRElement;
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
"paths": {
|
"paths": {
|
||||||
"mediabunny": ["./dist/mediabunny.d.ts"],
|
"mediabunny": ["./dist/mediabunny.d.ts"],
|
||||||
},
|
},
|
||||||
|
"types": ["vite/client"]
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"./vite.config.ts",
|
"./vite.config.ts",
|
||||||
|
|||||||
Reference in New Issue
Block a user