2
0
Mugen87 7 жил өмнө
parent
commit
6dc72e26d1

+ 4 - 2
src/textures/VideoTexture.js

@@ -14,11 +14,13 @@ function VideoTexture( video, mapping, wrapS, wrapT, magFilter, minFilter, forma
 
 	// fires when the first frame of the media has finished loading (now there are valid texture data)
 
-	video.addEventListener( 'loadeddata', function () {
+	video.addEventListener( 'loadeddata', function onLoaded() {
 
 		scope.needsUpdate = true;
 
-	} );
+		video.removeEventListener( 'loadeddata', onLoaded, false );
+
+	}, false );
 
 }