Skip to content

Commit caa13b7

Browse files
authored
Remove data from path file in run script
After the release of v0.60 the path in worker.run from /data/filename to filename https://github.com/ffmpegjs/ffmpeg.js/blob/master/src/createWorker.js#L72
1 parent 12054e2 commit caa13b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,13 @@ Worker.run() is similar to FFmpeg cli tool, aims to provide maximum flexiblity f
220220

221221
**Arguments:**
222222

223-
- `args` a string to represent arguments, note: inputPath must start with `/data/` as worker.write write to this path by default.
223+
- `args` a string to represent arguments
224224
- `jobId` check Worker.load()
225225

226226
**Examples:**
227227

228228
```javascript
229229
(async () => {
230-
await worker.run("-i /data/flame.avi -s 1920x1080 output.mp4");
230+
await worker.run("-i flame.avi -s 1920x1080 output.mp4");
231231
})();
232232
```

0 commit comments

Comments
 (0)