Skip to content

Commit 3c0887d

Browse files
committed
Update usage.md with imports
1 parent f714c17 commit 3c0887d

File tree

1 file changed

+4
-0
lines changed
  • apps/website/docs/getting-started

1 file changed

+4
-0
lines changed

apps/website/docs/getting-started/usage.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ a ~31 MB ffmpeg-core.wasm.
1414
:::
1515

1616
```jsx live
17+
// import { FFmpeg } from '@ffmpeg/ffmpeg';
18+
// import { fetchFile } from '@ffmpeg/util';
1719
function() {
1820
const [loaded, setLoaded] = useState(false);
1921
const ffmpegRef = useRef(new FFmpeg());
@@ -64,6 +66,8 @@ a ~31 MB ffmpeg-core.wasm.
6466
:::
6567

6668
```jsx live
69+
// import { FFmpeg } from '@ffmpeg/ffmpeg';
70+
// import { fetchFile, toBlobURL } from '@ffmpeg/util';
6771
function() {
6872
const [loaded, setLoaded] = useState(false);
6973
const ffmpegRef = useRef(new FFmpeg());

0 commit comments

Comments
 (0)