diff --git a/src/io/video.js b/src/io/video.js index ba05ff244..70b753908 100644 --- a/src/io/video.js +++ b/src/io/video.js @@ -1,67 +1,7 @@ -const log = require('../util/log'); - class Video { constructor (runtime) { - /** - * Reference to the owning Runtime. - * @type{!Runtime} - */ this.runtime = runtime; - - /** - * Default value for mirrored frames. - * @type boolean - */ - this.mirror = true; - - /** - * Cache frames for this many ms. - * @type number - */ - this._frameCacheTimeout = 16; - - /** - * DOM Video element - * @private - */ - this._video = null; - - /** - * Usermedia stream track - * @private - */ - this._track = null; - - /** - * Stores some canvas/frame data per resolution/mirror states - */ - this._workspace = []; - - /** - * Id representing a Scratch Renderer skin the video is rendered to for - * previewing. - * @type {number} - */ - this._skinId = -1; - - /** - * The Scratch Renderer Skin object. - * @type {Skin} - */ - this._skin = null; - - /** - * Id for a drawable using the video's skin that will render as a video - * preview. - * @type {Drawable} - */ - this._drawable = -1; - - /** - * Store the last state of the video transparency ghost effect - * @type {number} - */ - this._ghost = 0; + this.provider = null; } static get FORMAT_IMAGE_DATA () { @@ -97,39 +37,17 @@ class Video { * @return {Promise.