Skip to content

Commit 1c05af8

Browse files
committed
published v1.0.0 and added example
1 parent ded6d93 commit 1c05af8

File tree

16 files changed

+1675
-27
lines changed

16 files changed

+1675
-27
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This should install the library. Now because ffmpeg.js requires the use of the [
3737

3838
### ⚡️Vite
3939

40-
In a vite environment you can simply add these policies by putting the following into your `vite-config.js`:
40+
In a vite environment you can simply add these policies by putting the following into your `vite.config.js`:
4141

4242
```js
4343
...
@@ -92,7 +92,7 @@ ffmpeg.deleteFile('input.mp4');
9292
ffmpeg.deleteFile('output.avi');
9393
```
9494

95-
Let's see how you would get the same result using the **object oriented** way.
95+
Let's see how you would get the same result the **object oriented** way.
9696

9797
```typescript
9898
const source = 'https://<path to file>/<filename>.mp4';
@@ -109,6 +109,7 @@ const result: Uint8Array = ffmpeg
109109

110110
Take a look at these tests for more examples:
111111

112+
- https://github.com/diffusion-studio/ffmpeg-js/blob/main/examples/src/main.ts
112113
- https://github.com/diffusion-studio/ffmpeg-js/blob/main/src/tests/export.spec.ts
113114
- https://github.com/diffusion-studio/ffmpeg-js/blob/main/src/tests/commands.spec.ts
114115

examples/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

examples/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + TS</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)