Make disableVideo a public method

This commit is contained in:
Corey Frang 2018-04-03 16:01:10 -04:00 committed by Michael "Z" Goddard
parent d512042415
commit 992e884668
No known key found for this signature in database
GPG key ID: 762CD40DD5349872

View file

@ -158,7 +158,7 @@ class Video {
return this._singleSetup; return this._singleSetup;
} }
_disableVideo () { disableVideo () {
this._disablePreview(); this._disablePreview();
this._singleSetup = null; this._singleSetup = null;
// by clearing refs to video and track, we should lose our hold over the camera // 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 we haven't already created and started a preview frame render loop, do so
if (!this._renderPreviewFrame) { if (!this._renderPreviewFrame) {
this._drawable.updateProperties({visible: true});
this._renderPreviewFrame = () => { this._renderPreviewFrame = () => {
if (!this._renderPreviewFrame) { if (!this._renderPreviewFrame) {
return; return;