shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
drawVideoToCanvas
Type:Function
Status:stable
Since:1.0.0-beta.21
Platform:js
@blackbyte.sugar.js.dom.css
Draw the current frame of a video into a canvas.
Params
- $video*-HTMLVideoElement
The video you want to draw into the canvas
- [$canvas]*-HTMLCanvasElement
An optional canvas to draw into. If not provided, a new canvas will be created
Example
import { drawVideoToCanvas } from '@blackbyte/sugar/js/dom';
const $canvas = drawVideoToCanvas($video);Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.com