@@ -11,7 +11,7 @@ It is recommended to read [Overview](/docs/overview) first.
1111::: caution
1212If you are a [ vite] ( https://vitejs.dev/ ) user, use ` esm ` in ** baseURL** instead of ` umd ` :
1313
14- ~~ https://unpkg.com/ @ffmpeg/core@0.12.10/dist/umd ~~ => https://unpkg.com /@ffmpeg/core@0.12.10/dist/esm
14+ ~~ https://cdn.jsdelivr.net/npm/ @ffmpeg/core@0.12.10/dist/umd ~~ => https://cdn.jsdelivr.net/npm /@ffmpeg/core@0.12.10/dist/esm
1515:::
1616
1717``` jsx live
@@ -24,7 +24,7 @@ function() {
2424 const messageRef = useRef (null );
2525
2626 const load = async () => {
27- const baseURL = ' https://unpkg.com /@ffmpeg/core@0.12.6/dist/umd'
27+ const baseURL = ' https://cdn.jsdelivr.net/npm /@ffmpeg/core@0.12.6/dist/umd'
2828 const ffmpeg = ffmpegRef .current ;
2929 ffmpeg .on (' log' , ({ message }) => {
3030 messageRef .current .innerHTML = message;
@@ -81,7 +81,7 @@ function() {
8181 const messageRef = useRef (null );
8282
8383 const load = async () => {
84- const baseURL = ' https://unpkg.com /@ffmpeg/core-mt@0.12.6/dist/umd'
84+ const baseURL = ' https://cdn.jsdelivr.net/npm /@ffmpeg/core-mt@0.12.6/dist/umd'
8585 const ffmpeg = ffmpegRef .current ;
8686 ffmpeg .on (' log' , ({ message }) => {
8787 messageRef .current .innerHTML = message;
@@ -134,7 +134,7 @@ function() {
134134 const messageRef = useRef (null );
135135
136136 const load = async () => {
137- const baseURL = ' https://unpkg.com /@ffmpeg/core@0.12.6/dist/umd'
137+ const baseURL = ' https://cdn.jsdelivr.net/npm /@ffmpeg/core@0.12.6/dist/umd'
138138 const ffmpeg = ffmpegRef .current ;
139139 ffmpeg .on (' log' , ({ message }) => {
140140 messageRef .current .innerHTML = message;
@@ -192,7 +192,7 @@ function() {
192192 const messageRef = useRef (null );
193193
194194 const load = async () => {
195- const baseURL = ' https://unpkg.com /@ffmpeg/core@0.12.6/dist/umd'
195+ const baseURL = ' https://cdn.jsdelivr.net/npm /@ffmpeg/core@0.12.6/dist/umd'
196196 const ffmpeg = ffmpegRef .current ;
197197 // Listen to progress event instead of log.
198198 ffmpeg .on (' progress' , ({ progress, time }) => {
@@ -243,7 +243,7 @@ function() {
243243 const messageRef = useRef (null );
244244
245245 const load = async () => {
246- const baseURL = ' https://unpkg.com /@ffmpeg/core@0.12.6/dist/umd'
246+ const baseURL = ' https://cdn.jsdelivr.net/npm /@ffmpeg/core@0.12.6/dist/umd'
247247 const ffmpeg = ffmpegRef .current ;
248248 ffmpeg .on (' log' , ({ message }) => {
249249 messageRef .current .innerHTML = message;
@@ -313,7 +313,7 @@ function() {
313313 const messageRef = useRef (null );
314314
315315 const load = async () => {
316- const baseURL = ' https://unpkg.com /@ffmpeg/core@0.12.6/dist/umd'
316+ const baseURL = ' https://cdn.jsdelivr.net/npm /@ffmpeg/core@0.12.6/dist/umd'
317317 const ffmpeg = ffmpegRef .current ;
318318 ffmpeg .on (' log' , ({ message }) => {
319319 messageRef .current .innerHTML = message;
@@ -372,7 +372,7 @@ function() {
372372 const messageRef = useRef (null );
373373
374374 const load = async () => {
375- const baseURL = ' https://unpkg.com /@ffmpeg/core@0.12.6/dist/umd'
375+ const baseURL = ' https://cdn.jsdelivr.net/npm /@ffmpeg/core@0.12.6/dist/umd'
376376 const ffmpeg = ffmpegRef .current ;
377377 ffmpeg .on (' log' , ({ message }) => {
378378 messageRef .current .innerHTML = message;
0 commit comments