Skip to content

Commit

Permalink
Switch from 'done' to 'saving' if we have saving to do
Browse files Browse the repository at this point in the history
  • Loading branch information
hobinjk-ptc committed May 6, 2024
1 parent 3e5e08e commit ffe6fb5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tools/spatialAnalytics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,17 @@ function setRecordingState(newState) {
break;

case RecordingState.done:
if (recordingStarted) {
recordingStarted = false;
spatialInterface.stopVirtualizerRecording(onStopVirtualizerRecording);
setRecordingState(RecordingState.saving);
return;
}
recordingIcon.style.display = 'none';
msIconBackground.style.display = 'none';
recIconBackground.style.display = 'none';
iconContainer.style.display = 'none';
videoToggle.remove();
if (recordingStarted) {
recordingStarted = false;
spatialInterface.stopVirtualizerRecording(onStopVirtualizerRecording);
}
break;
}
}
Expand Down

0 comments on commit ffe6fb5

Please sign in to comment.