File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
apps/website/src/components/Playground Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ export const CORE_URL = `https://unpkg.com/@ffmpeg/core@${CORE_VERSION}/dist/umd
44export const CORE_MT_URL = `https://unpkg.com/@ffmpeg/core-mt@${ CORE_VERSION } /dist/umd/ffmpeg-core.js` ;
55
66export const CORE_SIZE = {
7- [ `https://unpkg.com/@ffmpeg/core@${ CORE_VERSION } /dist/umd/ffmpeg-core.js` ] : 111646 ,
8- [ `https://unpkg.com/@ffmpeg/core@${ CORE_VERSION } /dist/umd/ffmpeg-core.wasm` ] : 31967534 ,
9- [ `https://unpkg.com/@ffmpeg/core-mt@${ CORE_VERSION } /dist/umd/ffmpeg-core.js` ] : 130002 ,
10- [ `https://unpkg.com/@ffmpeg/core-mt@${ CORE_VERSION } /dist/umd/ffmpeg-core.wasm` ] : 32441947 ,
11- [ `https://unpkg.com/@ffmpeg/core-mt@${ CORE_VERSION } /dist/umd/ffmpeg-core.worker.js` ] : 2978 ,
7+ [ `https://unpkg.com/@ffmpeg/core@${ CORE_VERSION } /dist/umd/ffmpeg-core.js` ] : 109667 ,
8+ [ `https://unpkg.com/@ffmpeg/core@${ CORE_VERSION } /dist/umd/ffmpeg-core.wasm` ] : 31598677 ,
9+ [ `https://unpkg.com/@ffmpeg/core-mt@${ CORE_VERSION } /dist/umd/ffmpeg-core.js` ] : 127674 ,
10+ [ `https://unpkg.com/@ffmpeg/core-mt@${ CORE_VERSION } /dist/umd/ffmpeg-core.wasm` ] : 32077318 ,
11+ [ `https://unpkg.com/@ffmpeg/core-mt@${ CORE_VERSION } /dist/umd/ffmpeg-core.worker.js` ] : 2915 ,
1212} ;
1313
1414export const SAMPLE_FILES = {
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export default function Playground() {
2222 const ffmpeg = useRef ( new FFmpeg ( ) ) ;
2323
2424 const load = async ( mt : boolean = false ) => {
25+ setState ( State . LOADING ) ;
2526 const setProgress = ( { url : _url , received : _received } ) => {
2627 setURL ( _url as string ) ;
2728 setReceived ( _received ) ;
@@ -48,7 +49,6 @@ export default function Playground() {
4849 setProgress
4950 )
5051 : "" ;
51- setState ( State . LOADING ) ;
5252 ffmpeg . current . terminate ( ) ;
5353 await ffmpeg . current . load ( {
5454 coreURL,
You can’t perform that action at this time.
0 commit comments