From 992e8846689c422ac9c27961a02e2f0f13786a20 Mon Sep 17 00:00:00 2001 From: Corey Frang Date: Tue, 3 Apr 2018 16:01:10 -0400 Subject: [PATCH] Make disableVideo a public method --- src/io/video.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/io/video.js b/src/io/video.js index 84ece4d12..892f19da2 100644 --- a/src/io/video.js +++ b/src/io/video.js @@ -158,7 +158,7 @@ class Video { return this._singleSetup; } - _disableVideo () { + disableVideo () { this._disablePreview(); this._singleSetup = null; // by clearing refs to video and track, we should lose our hold over the camera @@ -193,6 +193,8 @@ class Video { // if we haven't already created and started a preview frame render loop, do so if (!this._renderPreviewFrame) { + this._drawable.updateProperties({visible: true}); + this._renderPreviewFrame = () => { if (!this._renderPreviewFrame) { return;