|
@@ -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)
|
|
// 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;
|
|
scope.needsUpdate = true;
|
|
|
|
|
|
- } );
|
|
|
|
|
|
+ video.removeEventListener( 'loadeddata', onLoaded, false );
|
|
|
|
+
|
|
|
|
+ }, false );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|