Skip to content

Commit

Permalink
Update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromewu committed Oct 9, 2023
1 parent 88725b0 commit 7066134
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion apps/nextjs-app/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function Home() {

const load = async () => {
setIsLoading(true)
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].3/dist/umd'
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].4/dist/umd'
const ffmpeg = ffmpegRef.current
ffmpeg.on('log', ({ message }) => {
if (messageRef.current) messageRef.current.innerHTML = message
Expand Down
2 changes: 1 addition & 1 deletion apps/react-vite-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function App() {
const messageRef = useRef<HTMLParagraphElement | null>(null)

const load = async () => {
const baseURL = "https://unpkg.com/@ffmpeg/[email protected].3/dist/esm";
const baseURL = "https://unpkg.com/@ffmpeg/[email protected].4/dist/esm";
const ffmpeg = ffmpegRef.current;
ffmpeg.on("log", ({ message }) => {
if (messageRef.current) messageRef.current.innerHTML = message;
Expand Down
2 changes: 1 addition & 1 deletion apps/vue-vite-app/src/components/FFmpegDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type { LogEvent } from '@ffmpeg/ffmpeg/dist/esm/types'
import { fetchFile, toBlobURL } from '@ffmpeg/util'
import { defineComponent, ref } from 'vue'
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].3/dist/esm'
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].4/dist/esm'
const videoURL = 'https://ffmpegwasm.netlify.app/video/video-15s.avi'
export default defineComponent({
Expand Down
16 changes: 8 additions & 8 deletions apps/website/docs/getting-started/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ It is recommended to read [Overview](/docs/overview) first.
:::caution
If you are a [vite](https://vitejs.dev/) user, use `esm` in **baseURL** instead of `umd`:

~~https://unpkg.com/@ffmpeg/[email protected].3/dist/umd~~ => https://unpkg.com/@ffmpeg/[email protected].3/dist/esm
~~https://unpkg.com/@ffmpeg/[email protected].4/dist/umd~~ => https://unpkg.com/@ffmpeg/[email protected].4/dist/esm
:::

```jsx live
Expand All @@ -24,7 +24,7 @@ function() {
const messageRef = useRef(null);

const load = async () => {
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].3/dist/umd'
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].4/dist/umd'
const ffmpeg = ffmpegRef.current;
ffmpeg.on('log', ({ message }) => {
messageRef.current.innerHTML = message;
Expand Down Expand Up @@ -81,7 +81,7 @@ function() {
const messageRef = useRef(null);

const load = async () => {
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].3/dist/umd'
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].4/dist/umd'
const ffmpeg = ffmpegRef.current;
ffmpeg.on('log', ({ message }) => {
messageRef.current.innerHTML = message;
Expand Down Expand Up @@ -134,7 +134,7 @@ function() {
const messageRef = useRef(null);

const load = async () => {
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].3/dist/umd'
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].4/dist/umd'
const ffmpeg = ffmpegRef.current;
ffmpeg.on('log', ({ message }) => {
messageRef.current.innerHTML = message;
Expand Down Expand Up @@ -192,7 +192,7 @@ function() {
const messageRef = useRef(null);

const load = async () => {
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].3/dist/umd'
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].4/dist/umd'
const ffmpeg = ffmpegRef.current;
// Listen to progress event instead of log.
ffmpeg.on('progress', ({ progress, time }) => {
Expand Down Expand Up @@ -243,7 +243,7 @@ function() {
const messageRef = useRef(null);

const load = async () => {
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].3/dist/umd'
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].4/dist/umd'
const ffmpeg = ffmpegRef.current;
ffmpeg.on('log', ({ message }) => {
messageRef.current.innerHTML = message;
Expand Down Expand Up @@ -313,7 +313,7 @@ function() {
const messageRef = useRef(null);

const load = async () => {
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].3/dist/umd'
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].4/dist/umd'
const ffmpeg = ffmpegRef.current;
ffmpeg.on('log', ({ message }) => {
messageRef.current.innerHTML = message;
Expand Down Expand Up @@ -372,7 +372,7 @@ function() {
const messageRef = useRef(null);

const load = async () => {
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].3/dist/umd'
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].4/dist/umd'
const ffmpeg = ffmpegRef.current;
ffmpeg.on('log', ({ message }) => {
messageRef.current.innerHTML = message;
Expand Down
10 changes: 5 additions & 5 deletions apps/website/src/components/Playground/const.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
export const CORE_VERSION = "0.12.3";
export const CORE_VERSION = "0.12.4";

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`;

export const CORE_SIZE = {
[`https://unpkg.com/@ffmpeg/core@${CORE_VERSION}/dist/umd/ffmpeg-core.js`]: 110049,
[`https://unpkg.com/@ffmpeg/core@${CORE_VERSION}/dist/umd/ffmpeg-core.wasm`]: 31598677,
[`https://unpkg.com/@ffmpeg/core-mt@${CORE_VERSION}/dist/umd/ffmpeg-core.js`]: 128056,
[`https://unpkg.com/@ffmpeg/core-mt@${CORE_VERSION}/dist/umd/ffmpeg-core.wasm`]: 32077318,
[`https://unpkg.com/@ffmpeg/core@${CORE_VERSION}/dist/umd/ffmpeg-core.js`]: 114673,
[`https://unpkg.com/@ffmpeg/core@${CORE_VERSION}/dist/umd/ffmpeg-core.wasm`]: 31739621,
[`https://unpkg.com/@ffmpeg/core-mt@${CORE_VERSION}/dist/umd/ffmpeg-core.js`]: 132680,
[`https://unpkg.com/@ffmpeg/core-mt@${CORE_VERSION}/dist/umd/ffmpeg-core.wasm`]: 32220432,
[`https://unpkg.com/@ffmpeg/core-mt@${CORE_VERSION}/dist/umd/ffmpeg-core.worker.js`]: 2915,
};

Expand Down
6 changes: 3 additions & 3 deletions scripts/download-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ const fs = require("fs");
const NPM_URL = "https://registry.npmjs.org";
const ROOT = "public/assets";

const FFMPEG_VERSION = "0.12.3";
const FFMPEG_VERSION = "0.12.7";
const UTIL_VERSION = "0.12.0";
const CORE_VERSION = "0.12.3";
const CORE_MT_VERSION = "0.12.3";
const CORE_VERSION = "0.12.4";
const CORE_MT_VERSION = "0.12.4";

const FFMPEG_TGZ = `ffmpeg-${FFMPEG_VERSION}.tgz`;
const UTIL_TGZ = `util-${UTIL_VERSION}.tgz`;
Expand Down

0 comments on commit 7066134

Please sign in to comment.