Skip to content

Commit fe33bd2

Browse files
committed
Fix playground bug
1 parent af3566f commit fe33bd2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

apps/website/src/components/Playground/const.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ export const CORE_URL = `https://unpkg.com/@ffmpeg/core@${CORE_VERSION}/dist/umd
44
export const CORE_MT_URL = `https://unpkg.com/@ffmpeg/core-mt@${CORE_VERSION}/dist/umd/ffmpeg-core.js`;
55

66
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,
1212
};
1313

1414
export const SAMPLE_FILES = {

apps/website/src/components/Playground/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)