diff --git a/examples/webgl_materials_video_webcam.html b/examples/webgl_materials_video_webcam.html index fc2d75716d7b563cd09e46830fd6621a78bafb3c..b4b269b5a2bef3f835b6ac475e0dc4c0800b6ef1 100644 --- a/examples/webgl_materials_video_webcam.html +++ b/examples/webgl_materials_video_webcam.html @@ -108,7 +108,7 @@ // apply the stream to the video element used in the texture - video.src = window.URL.createObjectURL( stream ); + video.srcObject = stream; video.play(); } ).catch( function( error ) {