Skip to content

Commit 90714d0

Browse files
authored
Merge pull request #14980 from Mugen87/dev7
Examples: Fix stream handling in webgl_materials_video_webcam
2 parents 4bcb1df + 99ae270 commit 90714d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/webgl_materials_video_webcam.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108

109109
// apply the stream to the video element used in the texture
110110

111-
video.src = window.URL.createObjectURL( stream );
111+
video.srcObject = stream;
112112
video.play();
113113

114114
} ).catch( function( error ) {

0 commit comments

Comments
 (0)