diff --git a/apps/website/docs/getting-started/usage.md b/apps/website/docs/getting-started/usage.md index ce73d6d..14af408 100644 --- a/apps/website/docs/getting-started/usage.md +++ b/apps/website/docs/getting-started/usage.md @@ -75,7 +75,7 @@ function() { const messageRef = useRef(null); const load = async () => { - const baseURL = 'https://unpkg.com/@ffmpeg/core-mt@0.12.0-alpha.2/dist/umd' + const baseURL = 'https://unpkg.com/@ffmpeg/core-mt@0.12.1/dist/umd' const ffmpeg = ffmpegRef.current; ffmpeg.on("log", ({ message }) => { messageRef.current.innerHTML = message; @@ -184,7 +184,7 @@ function() { const load = async () => { const ffmpeg = ffmpegRef.current; // Listen to progress event instead of log. - ffmpeg.on("progress", (progress) => { + ffmpeg.on("progress", ({ progress }) => { messageRef.current.innerHTML = `${progress * 100} %`; }); await ffmpeg.load(); diff --git a/apps/website/src/components/Playground/const.ts b/apps/website/src/components/Playground/const.ts index a4f1802..23cdc70 100644 --- a/apps/website/src/components/Playground/const.ts +++ b/apps/website/src/components/Playground/const.ts @@ -1,4 +1,4 @@ -export const CORE_VERSION = "0.12.0-alpha.2"; +export const CORE_VERSION = "0.12.1"; export const CORE_URL = `https://unpkg.com/@ffmpeg/core@${CORE_VERSION}/dist/umd/ffmpeg-core.js`; export const CORE_MT_URL = `https://unpkg.com/@ffmpeg/core-mt@${CORE_VERSION}/dist/umd/ffmpeg-core.js`;