Преглед на файлове

Merge pull request #14980 from Mugen87/dev7

Examples: Fix stream handling in webgl_materials_video_webcam
Mr.doob преди 7 години
родител
ревизия
90714d0a50
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 ) {