David Catuhe 8 년 전
부모
커밋
f0175ed90a
5개의 변경된 파일965개의 추가작업 그리고 954개의 파일을 삭제
  1. 468 465
      dist/preview release/babylon.d.ts
  2. 10 10
      dist/preview release/babylon.js
  3. 9 4
      dist/preview release/babylon.max.js
  4. 468 465
      dist/preview release/babylon.module.d.ts
  5. 10 10
      dist/preview release/babylon.worker.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 468 - 465
dist/preview release/babylon.d.ts


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 10 - 10
dist/preview release/babylon.js


+ 9 - 4
dist/preview release/babylon.max.js

@@ -41907,16 +41907,17 @@ var BABYLON;
             _this._lastUpdate = BABYLON.Tools.Now;
             return _this;
         }
+        VideoTexture.prototype.__setTextureReady = function () {
+            this._texture.isReady = true;
+        };
         VideoTexture.prototype._createTexture = function () {
-            var _this = this;
             this._texture = this.getScene().getEngine().createDynamicTexture(this.video.videoWidth, this.video.videoHeight, this._generateMipMaps, this._samplingMode);
             if (this._autoLaunch) {
                 this._autoLaunch = false;
                 this.video.play();
             }
-            this.video.addEventListener("playing", function () {
-                _this._texture.isReady = true;
-            });
+            this._setTextureReady = this.__setTextureReady.bind(this);
+            this.video.addEventListener("playing", this._setTextureReady);
         };
         VideoTexture.prototype.update = function () {
             var now = BABYLON.Tools.Now;
@@ -41927,6 +41928,10 @@ var BABYLON;
             this.getScene().getEngine().updateVideoTexture(this._texture, this.video, this._invertY);
             return true;
         };
+        VideoTexture.prototype.dispose = function () {
+            _super.prototype.dispose.call(this);
+            this.video.removeEventListener("playing", this._setTextureReady);
+        };
         VideoTexture.CreateFromWebCam = function (scene, onReady, constraints) {
             var video = document.createElement("video");
             var constraintsDeviceId;

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 468 - 465
dist/preview release/babylon.module.d.ts


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 10 - 10
dist/preview release/babylon.worker.js