videocontext
Advanced tools
Comparing version 0.37.0 to 0.38.0
{ | ||
"name": "videocontext", | ||
"version": "0.37.0", | ||
"version": "0.38.0", | ||
"description": "A WebGL & HTML5 graph based video composition library", | ||
@@ -5,0 +5,0 @@ "keywords":["video", "context", "composition", "timeline", "html5", "webgl"], |
@@ -44,2 +44,5 @@ //Matthew Shotton, R&D User Experience,© BBC 2015 | ||
console.debug("Error with element", this._element); | ||
this._state === SOURCENODESTATE.error; | ||
//Event though there's an error ready should be set to true so the node can output transparenn | ||
this._ready = true; | ||
this._triggerCallbacks("error"); | ||
@@ -46,0 +49,0 @@ }; |
@@ -5,3 +5,3 @@ //Matthew Shotton, R&D User Experience,© BBC 2015 | ||
let STATE = {"waiting":0, "sequenced":1, "playing":2, "paused":3, "ended":4}; | ||
let STATE = {"waiting":0, "sequenced":1, "playing":2, "paused":3, "ended":4, "error":5}; | ||
@@ -327,3 +327,3 @@ export default class SourceNode extends GraphNode{ | ||
_isReady(){ | ||
if (this._state === STATE.playing || this._state === STATE.paused){ | ||
if (this._state === STATE.playing || this._state === STATE.paused || this._state === STATE.error){ | ||
return this._ready; | ||
@@ -342,3 +342,3 @@ } | ||
//update the state | ||
if (this._state === STATE.waiting || this._state === STATE.ended) return false; | ||
if (this._state === STATE.waiting || this._state === STATE.ended || this._state === STATE.error) return false; | ||
@@ -345,0 +345,0 @@ this._triggerCallbacks("render", currentTime); |
@@ -101,2 +101,5 @@ //Matthew Shotton, R&D User Experience,© BBC 2015 | ||
console.debug("Error with element", this._element); | ||
this._state === SOURCENODESTATE.error; | ||
//Event though there's an error ready should be set to true so the node can output transparenn | ||
this._ready = true; | ||
this._triggerCallbacks("error"); | ||
@@ -103,0 +106,0 @@ }; |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
6684661
25312