fetchImage(canvas, media) {
        var context = canvas.getContext('2d');
        context.drawImage(media, 0, 0, media.offsetWidth, media.offsetHeight)
        return canvas.toDataURL();
    }
/* 
     * Utility method that captures an image from the video and draws to a canva
     * @canvas: the canvas where the image will be drawn
     * @media: video or img
     * @output: the data url of the blob image created
     *
     */
Utility method that captures an image from the video and draws to a canva
@canvas: the canvas where the image will be drawn
@media: video or img
@output: the data url of the blob image created
Utility method that captures an image from the video and draws to a canva @canvas : the canvas where the image will be drawn @media : video or img @output : the data url of the blob image created
fetchImage(canvas, media) {
        var context = canvas.getContext('2d');
        context.drawImage(media, 0, 0, media.offsetWidth, media.offsetHeight)
        return canvas.toDataURL();
    }
fetchImage ( canvas , media ) { var context = canvas . getContext ( '2d' ) ; context . drawImage ( media , 0 , 0 , media . offsetWidth , media . offsetHeight ) return canvas . toDataURL ( ) ; }
Utility method that captures an image from the video and draws to a canva
 @canvas: the canvas where the image will be drawn
 @media: video or img
 @output: the data url of the blob image created
Utility method that captures an image from the video and draws to a canva @canvas : the canvas where the image will be drawn @media : video or img @output : the data url of the blob image created