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
4
4
export const CORE_MT_URL = `https://unpkg.com/@ffmpeg/core-mt@${ CORE_VERSION } /dist/umd/ffmpeg-core.js` ;
5
5
6
6
export 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 ,
12
12
} ;
13
13
14
14
export const SAMPLE_FILES = {
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export default function Playground() {
22
22
const ffmpeg = useRef ( new FFmpeg ( ) ) ;
23
23
24
24
const load = async ( mt : boolean = false ) => {
25
+ setState ( State . LOADING ) ;
25
26
const setProgress = ( { url : _url , received : _received } ) => {
26
27
setURL ( _url as string ) ;
27
28
setReceived ( _received ) ;
@@ -48,7 +49,6 @@ export default function Playground() {
48
49
setProgress
49
50
)
50
51
: "" ;
51
- setState ( State . LOADING ) ;
52
52
ffmpeg . current . terminate ( ) ;
53
53
await ffmpeg . current . load ( {
54
54
coreURL,
You can’t perform that action at this time.
0 commit comments