-
-
Notifications
You must be signed in to change notification settings - Fork 831
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ export default function Home() { | |
|
||
const load = async () => { | ||
setIsLoading(true) | ||
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].4/dist/umd' | ||
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].5/dist/umd' | ||
const ffmpeg = ffmpegRef.current | ||
ffmpeg.on('log', ({ message }) => { | ||
if (messageRef.current) messageRef.current.innerHTML = message | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ function App() { | |
const messageRef = useRef<HTMLParagraphElement | null>(null) | ||
|
||
const load = async () => { | ||
const baseURL = "https://unpkg.com/@ffmpeg/[email protected].4/dist/esm"; | ||
const baseURL = "https://unpkg.com/@ffmpeg/[email protected].5/dist/esm"; | ||
const ffmpeg = ffmpegRef.current; | ||
ffmpeg.on("log", ({ message }) => { | ||
if (messageRef.current) messageRef.current.innerHTML = message; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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].4/dist/esm' | ||
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].5/dist/esm' | ||
const videoURL = 'https://ffmpegwasm.netlify.app/video/video-15s.avi' | ||
export default defineComponent({ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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].4/dist/umd~~ => https://unpkg.com/@ffmpeg/[email protected].4/dist/esm | ||
~~https://unpkg.com/@ffmpeg/[email protected].5/dist/umd~~ => https://unpkg.com/@ffmpeg/[email protected].5/dist/esm | ||
::: | ||
|
||
```jsx live | ||
|
@@ -24,7 +24,7 @@ function() { | |
const messageRef = useRef(null); | ||
|
||
const load = async () => { | ||
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].4/dist/umd' | ||
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].5/dist/umd' | ||
const ffmpeg = ffmpegRef.current; | ||
ffmpeg.on('log', ({ message }) => { | ||
messageRef.current.innerHTML = message; | ||
|
@@ -81,7 +81,7 @@ function() { | |
const messageRef = useRef(null); | ||
|
||
const load = async () => { | ||
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].4/dist/umd' | ||
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].5/dist/umd' | ||
const ffmpeg = ffmpegRef.current; | ||
ffmpeg.on('log', ({ message }) => { | ||
messageRef.current.innerHTML = message; | ||
|
@@ -134,7 +134,7 @@ function() { | |
const messageRef = useRef(null); | ||
|
||
const load = async () => { | ||
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].4/dist/umd' | ||
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].5/dist/umd' | ||
const ffmpeg = ffmpegRef.current; | ||
ffmpeg.on('log', ({ message }) => { | ||
messageRef.current.innerHTML = message; | ||
|
@@ -192,7 +192,7 @@ function() { | |
const messageRef = useRef(null); | ||
|
||
const load = async () => { | ||
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].4/dist/umd' | ||
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].5/dist/umd' | ||
const ffmpeg = ffmpegRef.current; | ||
// Listen to progress event instead of log. | ||
ffmpeg.on('progress', ({ progress, time }) => { | ||
|
@@ -243,7 +243,7 @@ function() { | |
const messageRef = useRef(null); | ||
|
||
const load = async () => { | ||
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].4/dist/umd' | ||
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].5/dist/umd' | ||
const ffmpeg = ffmpegRef.current; | ||
ffmpeg.on('log', ({ message }) => { | ||
messageRef.current.innerHTML = message; | ||
|
@@ -313,7 +313,7 @@ function() { | |
const messageRef = useRef(null); | ||
|
||
const load = async () => { | ||
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].4/dist/umd' | ||
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].5/dist/umd' | ||
const ffmpeg = ffmpegRef.current; | ||
ffmpeg.on('log', ({ message }) => { | ||
messageRef.current.innerHTML = message; | ||
|
@@ -372,7 +372,7 @@ function() { | |
const messageRef = useRef(null); | ||
|
||
const load = async () => { | ||
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].4/dist/umd' | ||
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected].5/dist/umd' | ||
const ffmpeg = ffmpegRef.current; | ||
ffmpeg.on('log', ({ message }) => { | ||
messageRef.current.innerHTML = message; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters