dist/videocontext.js
/**
	    * Initialise an instance of a SourceNode.
	    * This is the base class for other Nodes which generate media to be passed into the processing pipeline.
	    */
Initialise an instance of a SourceNode.
This is the base class for other Nodes which generate media to be passed into the processing pipeline.
Initialise an instance of a SourceNode . This is the base class for other Nodes which generate media to be passed into the processing pipeline .
function SourceNode(src, gl, renderGraph, currentTime) {
	        _classCallCheck(this, SourceNode);
	        _get(Object.getPrototypeOf(SourceNode.prototype), "constructor", this).call(this, gl, renderGraph, [], true);
	        this._element = undefined;
	        this._elementURL = undefined;
	        this._isResponsibleForElementLifeCycle = true;
	        if (typeof src === "string" || window.MediaStream !== undefined && src instanceof MediaStream) {
	            this._elementURL = src;
	        } else {
	            this._element = src;
	            this._isResponsibleForElementLifeCycle = false;
	        }
	        this._state = STATE.waiting;
	        this._currentTime = currentTime;
	        this._startTime = NaN;
	        this._stopTime = Infinity;
	        this._ready = false;
	        this._loadCalled = false;
	        this._stretchPaused = false;
	        this._texture = (0, _utilsJs.createElementTexutre)(gl);
	        gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 1, 1, 0, gl.RGBA, gl.UNSIGNED_BYTE, new Uint8Array([0, 0, 0, 0]));
	        this._callbacks = [];
	        this._renderPaused = false;
	        this._displayName = "SourceNode";
	    }
function SourceNode ( src , gl , renderGraph , currentTime ) { _classCallCheck ( this , SourceNode ) ; _get ( Object . getPrototypeOf ( SourceNode . prototype ) , "constructor" , this ) . call ( this , gl , renderGraph , [ ] , true ) ; this . _element = undefined ; this . _elementURL = undefined ; this . _isResponsibleForElementLifeCycle = true ; if ( typeof src === "string" || window . MediaStream !== undefined && src instanceof MediaStream ) { this . _elementURL = src ; } else { this . _element = src ; this . _isResponsibleForElementLifeCycle = false ; } this . _state = STATE . waiting ; this . _currentTime = currentTime ; this . _startTime = NaN ; this . _stopTime = Infinity ; this . _ready = false ; this . _loadCalled = false ; this . _stretchPaused = false ; this . _texture = ( 0 , _utilsJs . createElementTexutre ) ( gl ) ; gl . texImage2D ( gl . TEXTURE_2D , 0 , gl . RGBA , 1 , 1 , 0 , gl . RGBA , gl . UNSIGNED_BYTE , new Uint8Array ( [ 0 , 0 , 0 , 0 ] ) ) ; this . _callbacks = [ ] ; this . _renderPaused = false ; this . _displayName = "SourceNode" ; }
Initialise an instance of a SourceNode.
Initialise an instance of a SourceNode .
//create the node from the passed URL or MediaStream //use the passed element to create the SourceNode