Add angular example (#653)
This commit is contained in:
@@ -10,12 +10,12 @@
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ffmpeg/ffmpeg": "*",
|
||||
"@ffmpeg/util": "*",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ffmpeg/ffmpeg": "*",
|
||||
"@ffmpeg/util": "*",
|
||||
"@types/react": "^18.2.15",
|
||||
"@types/react-dom": "^18.2.7",
|
||||
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
||||
|
||||
@@ -31,7 +31,7 @@ function App() {
|
||||
};
|
||||
|
||||
const transcode = async () => {
|
||||
const videoURL = "https://ffmpegwasm.netlify.app/video/video-15s.avi";
|
||||
const videoURL = "https://raw.githubusercontent.com/ffmpegwasm/testdata/master/video-15s.avi";
|
||||
const ffmpeg = ffmpegRef.current;
|
||||
await ffmpeg.writeFile("input.avi", await fetchFile(videoURL));
|
||||
await ffmpeg.exec(["-i", "input.avi", "output.mp4"]);
|
||||
|
||||
Reference in New Issue
Block a user