|
@@ -64748,12 +64748,12 @@ var BABYLON;
|
|
|
}
|
|
|
_this._texture = _this._engine.createDynamicTexture(_this.video.videoWidth, _this.video.videoHeight, _this._generateMipMaps, _this._samplingMode);
|
|
|
if (!_this.video.autoplay) {
|
|
|
- var oldHandler_1 = _this.video.onplay;
|
|
|
- _this.video.onplay = function () {
|
|
|
- _this.video.pause();
|
|
|
- _this.video.onplay = oldHandler_1;
|
|
|
+ var oldHandler_1 = _this.video.onplaying;
|
|
|
+ _this.video.onplaying = function () {
|
|
|
+ _this.video.onplaying = oldHandler_1;
|
|
|
_this._texture.isReady = true;
|
|
|
_this._updateInternalTexture();
|
|
|
+ _this.video.pause();
|
|
|
if (_this._onLoadObservable && _this._onLoadObservable.hasObservers()) {
|
|
|
_this.onLoadObservable.notifyObservers(_this);
|
|
|
}
|