Ver código fonte

Examples: Fix stream handling in webgl_materials_video_webcam

Mugen87 6 anos atrás
pai
commit
99ae270990
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      examples/webgl_materials_video_webcam.html

+ 1 - 1
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 ) {