Remove all video files and use github instead

This commit is contained in:
Jerome Wu 2023-08-22 22:31:40 +08:00
parent 0a96b78c74
commit 9ab958d822
7 changed files with 7 additions and 8 deletions

View File

@ -14,7 +14,7 @@ import FileSystemManager from "./FileSystemManager";
import { SAMPLE_FILES } from "../const"; import { SAMPLE_FILES } from "../const";
import Editor from "./Editor"; import Editor from "./Editor";
const defaultArgs = JSON.stringify(["-i", "video.avi", "video.mp4"], null, 2); const defaultArgs = JSON.stringify(["-i", "video.webm", "video.mp4"], null, 2);
interface WorkspaceProps { interface WorkspaceProps {
ffmpeg: MutableRefObject<FFmpeg>; ffmpeg: MutableRefObject<FFmpeg>;

View File

@ -12,6 +12,6 @@ export const CORE_SIZE = {
}; };
export const SAMPLE_FILES = { export const SAMPLE_FILES = {
"video.avi": "video.webm":
"https://raw.githubusercontent.com/ffmpegwasm/testdata/master/video-3s.avi", "https://raw.githubusercontent.com/ffmpegwasm/testdata/master/Big_Buck_Bunny_180_10s.webm",
}; };

View File

@ -30,16 +30,15 @@ development!
<div style={{ height: 32 }} /> <div style={{ height: 32 }} />
:::tip
Demo Video: [https://youtu.be/F01B0fV20QA](https://youtu.be/F01B0fV20QA)
:::
## How to Use :rocket: ## How to Use :rocket:
> It is recommended to read [Overview](/docs/overview) first to learn > It is recommended to read [Overview](/docs/overview) first to learn
ffmpeg.wasm fundamentals. ffmpeg.wasm fundamentals.
Demo Video:
<video width="100%" controls>
<source src="/video/playground-how-to.mp4" type="video/mp4" />
</video>
A typical flow to use ffmpeg.wasm is: A typical flow to use ffmpeg.wasm is:
#### Download and load JavaScript & WebAssembly assets #### Download and load JavaScript & WebAssembly assets