diff --git a/src/content/demo/video-element/code.js b/src/content/demo/video-element/code.js index 27d9b75c2..e212a4c53 100644 --- a/src/content/demo/video-element/code.js +++ b/src/content/demo/video-element/code.js @@ -7,6 +7,7 @@ const video2source = document.createElement('source'); const webcamEl = document.createElement('video'); +// FabricImage requires the width and height attributes to be set video1El.width = 480; video1El.height = 360; video1El.id = 'video1' @@ -107,4 +108,4 @@ if (window.location.protocol === 'https:') { fabric.util.requestAnimFrame(function render() { canvas.renderAll(); fabric.util.requestAnimFrame(render); -}); \ No newline at end of file +});