Skip to content

Commit f44e3da

Browse files
committed
temporary downgrade to fix
1 parent 95026d9 commit f44e3da

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

apps/angular-app/src/app/app.component.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { RouterOutlet } from '@angular/router';
44
import { FFmpeg } from '@ffmpeg/ffmpeg';
55
import { fetchFile, toBlobURL } from '@ffmpeg/util';
66

7-
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].7/dist/esm';
7+
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].6/dist/esm';
88

99
@Component({
1010
selector: 'app-root',
@@ -26,11 +26,11 @@ export class AppComponent {
2626
coreURL: await toBlobURL(`${baseURL}/ffmpeg-core.js`, 'text/javascript'),
2727
wasmURL: await toBlobURL(
2828
`${baseURL}/ffmpeg-core.wasm`,
29-
'application/wasm'
29+
'application/wasm',
3030
),
3131
workerURL: await toBlobURL(
3232
`${baseURL}/ffmpeg-core.worker.js`,
33-
'text/javascript'
33+
'text/javascript',
3434
),
3535
});
3636
this.loaded = true;
@@ -43,7 +43,7 @@ export class AppComponent {
4343
const fileData = await this.ffmpeg.readFile('output.mp4');
4444
const data = new Uint8Array(fileData as ArrayBuffer);
4545
this.videoURL = URL.createObjectURL(
46-
new Blob([data.buffer], { type: 'video/mp4' })
46+
new Blob([data.buffer], { type: 'video/mp4' }),
4747
);
4848
}
4949
}

apps/nextjs-app/app/Home.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function Home() {
1313

1414
const load = async () => {
1515
setIsLoading(true);
16-
const baseURL = "https://unpkg.com/@ffmpeg/[email protected].7/dist/umd";
16+
const baseURL = "https://unpkg.com/@ffmpeg/[email protected].6/dist/umd";
1717
const ffmpeg = ffmpegRef.current;
1818
ffmpeg.on("log", ({ message }) => {
1919
if (messageRef.current) messageRef.current.innerHTML = message;

apps/react-vite-app/src/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function App() {
99
const messageRef = useRef<HTMLParagraphElement | null>(null);
1010

1111
const load = async () => {
12-
const baseURL = "https://unpkg.com/@ffmpeg/[email protected].7/dist/esm";
12+
const baseURL = "https://unpkg.com/@ffmpeg/[email protected].6/dist/esm";
1313
const ffmpeg = ffmpegRef.current;
1414
ffmpeg.on("log", ({ message }) => {
1515
if (messageRef.current) messageRef.current.innerHTML = message;

apps/website/docs/getting-started/usage.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ It is recommended to read [Overview](/docs/overview) first.
1111
:::caution
1212
If you are a [vite](https://vitejs.dev/) user, use `esm` in **baseURL** instead of `umd`:
1313

14-
~~https://unpkg.com/@ffmpeg/[email protected].7/dist/umd~~ => https://unpkg.com/@ffmpeg/[email protected].7/dist/esm
14+
~~https://unpkg.com/@ffmpeg/[email protected].6/dist/umd~~ => https://unpkg.com/@ffmpeg/[email protected].6/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/[email protected].7/dist/umd'
27+
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].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/[email protected].7/dist/umd'
84+
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].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/[email protected].7/dist/umd'
137+
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].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/[email protected].7/dist/umd'
195+
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].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/[email protected].7/dist/umd'
246+
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].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/[email protected].7/dist/umd'
316+
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].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/[email protected].7/dist/umd'
375+
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].6/dist/umd'
376376
const ffmpeg = ffmpegRef.current;
377377
ffmpeg.on('log', ({ message }) => {
378378
messageRef.current.innerHTML = message;
@@ -426,7 +426,7 @@ function() {
426426
:::note
427427
Required:
428428

429-
- @ffmpeg/ffmpeg@0.12.7+
429+
- @ffmpeg/ffmpeg@0.12.6+
430430
- @ffmpeg/core@0.12.4+
431431
:::
432432

@@ -437,7 +437,7 @@ Please Check this PR: [Add WORKERFS support](https://github.com/ffmpegwasm/ffmpe
437437
:::note
438438
Required:
439439

440-
- @ffmpeg/ffmpeg@0.12.7+
440+
- @ffmpeg/ffmpeg@0.12.6+
441441
- @ffmpeg/core@0.12.4+
442442
:::
443443

packages/ffmpeg/src/const.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const MIME_TYPE_JAVASCRIPT = "text/javascript";
22
export const MIME_TYPE_WASM = "application/wasm";
33

4-
export const CORE_VERSION = "0.12.7";
4+
export const CORE_VERSION = "0.12.6";
55
export const CORE_URL = `https://unpkg.com/@ffmpeg/core@${CORE_VERSION}/dist/umd/ffmpeg-core.js`;
66

77
export enum FFMessageType {

scripts/download-assets.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const fs = require("fs");
44
const NPM_URL = "https://registry.npmjs.org";
55
const ROOT = "public/assets";
66

7-
const FFMPEG_VERSION = "0.12.7";
7+
const FFMPEG_VERSION = "0.12.6";
88
const UTIL_VERSION = "0.12.0";
99
const CORE_VERSION = "0.12.8";
1010
const CORE_MT_VERSION = "0.12.8";

0 commit comments

Comments
 (0)