p5.recorder
Install (CDN)
<!--jsdelivr-->
Install (NPM)
npm install p5.draweroryarn install p5.drawer
Example using default options
:
let rec = ;recstart; //stop after some timerec;
Example using custom options
:
let autoDownloadFile = false //set to no download at the endlet rec = autoDownloadFile; let options = filename: "my_custom_name_output.webm" recordAudio: true audioBitRate: 128000 videoBitRate: 100000000 //10 megabits fps: 45 //passing custom configsrecstartoptions; //stop after some timerec; /** * contains current status * status: { * frames: 0, * progress: 0, * state: undefined, * time: undefined, * } */recstatus; //download the file after stoprec;
default options start() method:
name | value |
---|---|
filename | "p5.recorder.canvas.webm" |
recordAudio | true |
audioBitRate | 128000 |
videoBitRate | 120000000 |
fps | 60 |
enable audio
Don't forget to CHECK enable audio (we are trying a better approach to capture audio-context on p5js-sound):
commands
- yarn dev
- yarn build
still in development
only support .webm for now