Update website
This commit is contained in:
parent
d506ebb0eb
commit
bb28e13594
@ -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();
|
||||
|
@ -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`;
|
||||
|
Loading…
Reference in New Issue
Block a user