@@ -90,6 +100,7 @@ const isStreamSelectDialogOpen = ref(false)
const isLoadingStream = ref(false)
const timeNow = useTimestamp({ interval: 100 })
const mediaStream = ref()
+const isProcessingVideo = ref(false)
onBeforeMount(async () => {
// Set initial widget options if they don't exist
@@ -128,6 +139,7 @@ const toggleRecording = async (): Promise => {
if (isRecording.value) {
if (nameSelectedStream.value !== undefined) {
videoStore.stopRecording(nameSelectedStream.value)
+ isProcessingVideo.value = true
}
return
}
@@ -215,6 +227,14 @@ if (widgetStore.isRealMiniWidget(miniWidget.value)) {
}
onBeforeUnmount(() => clearInterval(streamConnectionRoutine))
+// Check if there are videos being processed
+watch(
+ () => videoStore.areThereVideosProcessing,
+ (newValue) => {
+ isProcessingVideo.value = newValue
+ }
+)
+
// Try to prevent user from closing Cockpit when a stream is being recorded
watch(isRecording, () => {
if (!isRecording.value) {