Explorar o código

Examples: Fix stream handling in webgl_materials_video_webcam

Mugen87 %!s(int64=7) %!d(string=hai) anos
pai
achega
0da18fa935
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ) {