mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -05:00
Make disableVideo a public method
This commit is contained in:
parent
d512042415
commit
992e884668
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue