From d51204241526b78366da1d103ed5a791e27e1dee Mon Sep 17 00:00:00 2001 From: Corey Frang Date: Tue, 3 Apr 2018 15:43:57 -0400 Subject: [PATCH] Add set preview ghost --- src/io/video.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/io/video.js b/src/io/video.js index b24dff314..84ece4d12 100644 --- a/src/io/video.js +++ b/src/io/video.js @@ -167,8 +167,9 @@ class Video { } _disablePreview () { - if (this._skin) { + if (this._skin && this._drawable) { this._skin.clear(); + this._drawable.updateProperties({visible: false}); } this._renderPreviewFrame = null; } @@ -213,7 +214,16 @@ class Video { this._renderPreviewFrame(); } + } + /** + * Set the preview ghost effect + * @param {number} ghost from 0 (visible) to 100 (invisible) - ghost effect + */ + setPreviewGhost (ghost) { + if (this._drawable) { + this._drawable.updateProperties({ghost}); + } } get videoReady () {