videocontext
Advanced tools
Comparing version 0.24.0 to 0.24.1
{ | ||
"name": "videocontext", | ||
"version": "0.24.0", | ||
"version": "0.24.1", | ||
"description": "A WebGL & HTML5 graph based video composition library", | ||
@@ -15,3 +15,3 @@ "contributors": [ | ||
"build": "./node_modules/webpack/bin/webpack.js --config webpack.config.js && ./node_modules/webpack/bin/webpack.js --config webpack.commonjs2.config.js", | ||
"dev": "./node_modules/webpack/bin/webpack.js --watch --config webpack.config.js & ./node_modules/http-server/bin/http-server" | ||
"dev": "./node_modules/webpack/bin/webpack.js --watch --config webpack.config.js & ./node_modules/reload/bin/reload -b" | ||
}, | ||
@@ -29,2 +29,3 @@ "dependencies": {}, | ||
"node-libs-browser": "^0.5.2", | ||
"reload": "^1.0.1", | ||
"webpack": "^1.9.11" | ||
@@ -31,0 +32,0 @@ }, |
@@ -13,2 +13,3 @@ //Matthew Shotton, R&D User Experience,© BBC 2015 | ||
this._attributes = attributes; | ||
this._textureUploaded = false; | ||
} | ||
@@ -66,3 +67,8 @@ | ||
//if (!super._update(currentTime)) return false; | ||
super._update(currentTime); | ||
if (this._textureUploaded){ | ||
super._update(currentTime, false); | ||
}else{ | ||
super._update(currentTime); | ||
} | ||
if (this._startTime - this._currentTime < this._preloadTime && this._state !== SOURCENODESTATE.waiting && this._state !== SOURCENODESTATE.ended)this._load(); | ||
@@ -69,0 +75,0 @@ |
@@ -317,3 +317,3 @@ //Matthew Shotton, R&D User Experience,© BBC 2015 | ||
_update(currentTime){ | ||
_update(currentTime, triggerTextureUpdate=true){ | ||
this._rendered = true; | ||
@@ -351,3 +351,3 @@ let timeDelta = currentTime - this._currentTime; | ||
if(this._state === STATE.playing){ | ||
updateTexture(this._gl, this._texture, this._element); | ||
if(triggerTextureUpdate)updateTexture(this._gl, this._texture, this._element); | ||
if(this._stretchPaused){ | ||
@@ -354,0 +354,0 @@ this._stopTime += timeDelta; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3733080
106
27458
11