プロジェクト
GitHubで見る
SMUsamaShah/CanvasRecorder
概要
Record HTML5 canvas to webm video with JavaScript
デザイン・メディア計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルCanvasRecorder.js
Record a canvas to webm video without effecting rendering performance.
NOTE: Only tested it with Chrome and should work fine with Firefox
Blog article: https://smusamashah.github.io/blog/2018/10/26/CanvasRecorder
How to use
Create a recorder
const canvas = document.getElementById('animation');
const recorder = new CanvasRecorder(canvas);
// optional: bits per second for video quality, defaults to 2.5Mbps
const recorder = new CanvasRecorder(canvas, 4500000);
Start recording
recorder.start();
Stop recording
recorder.stop();
Save/download recording
recorder.save();
// Save with given file name
recorder.save('busy_motion.webm');
How it works
It is based on this WebRTC sample. Captures MediaStream from a canvas element and records it with MediaRecorder.
関連プロジェクトを探す
読み込み中…