The EnxStream.getVideoFrameImage() method allows you to take a snapshot of a video stream in your application. The image from the video stream gets captured as raw bitmap data into the Canvas DOM Element.
Method: EnxStream.getVideoFrameImage() – No Parameter required.
var myBitmap;
var canvas = document.createElement('canvas');
var context = canvas.getContext('2d');
canvas.id = "myCanvas";
document.body.appendChild(canvas);
myBitmap = stream.getVideoFrameImage();
canvas.width = myBitmap.width;
canvas.height = myBitmap.height;
context.putImageData(myBitmap, 0, 0);
