demos/video/VideoAsset.js
function VideoAsset(videoElement) {
  this._videoElement = null;
  this._destroyed = false;
  this._emitChange = this.emit.bind(this, 'change');
  this._lastTimestamp = -1;

  this._emptyCanvas = document.createElement('canvas');
  this._emptyCanvas.width = 1;
  this._emptyCanvas.height = 1;

  this.setVideo(videoElement);
}
function VideoAsset(videoElement) {
  this._videoElement = null;
  this._destroyed = false;
  this._emitChange = this.emit.bind(this, 'change');
  this._lastTimestamp = -1;

  this._emptyCanvas = document.createElement('canvas');
  this._emptyCanvas.width = 1;
  this._emptyCanvas.height = 1;

  this.setVideo(videoElement);
}
function VideoAsset ( videoElement ) { this . _videoElement = null ; this . _destroyed = false ; this . _emitChange = this . emit . bind ( this , 'change' ) ; this . _lastTimestamp = - 1 ; this . _emptyCanvas = document . createElement ( 'canvas' ) ; this . _emptyCanvas . width = 1 ; this . _emptyCanvas . height = 1 ; this . setVideo ( videoElement ) ; }
Dynamic asset containing a video element. Note that this won't work on IE 11 because of lack of support for video textures. Refer to the video-multi-res demo for a possible workaround.
Dynamic asset containing a video element . Note that this won t work on IE 11 because of lack of support for video textures . Refer to the video - multi - res demo for a possible workaround .