Skip to content

Commit

Permalink
Fix one second issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromewu committed Jul 26, 2023
1 parent 2dbb813 commit 7a8b6ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/website/docs/getting-started/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function() {
await fetchFile('/video/video-15s.avi')
);
// The exec should stop after 1 second.
await ffmpeg.exec(['-i', 'input.avi', 'output.mp4'], 1);
await ffmpeg.exec(['-i', 'input.avi', 'output.mp4'], 1000);
const data = await ffmpeg.readFile('output.mp4');
videoRef.current.src =
URL.createObjectURL(new Blob([data.buffer], {type: 'video/mp4'}));
Expand Down

0 comments on commit 7a8b6ef

Please sign in to comment.