From c78e2b22ea6a2e31dd6c34299507f16a5cb5c2ce Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Wed, 21 Feb 2024 16:25:15 -0300 Subject: [PATCH] video: Add logs and alerts to video recording pipeline --- src/stores/video.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stores/video.ts b/src/stores/video.ts index 81a97b30e..e1c7c4149 100644 --- a/src/stores/video.ts +++ b/src/stores/video.ts @@ -84,6 +84,7 @@ export const useVideoStore = defineStore('video', () => { mediaRecorder: undefined, timeRecordingStart: undefined, } + console.debug(`Activated stream '${streamName}'.`) } /** @@ -132,6 +133,7 @@ export const useVideoStore = defineStore('video', () => { if (activeStreams.value[streamName] === undefined) activateStream(streamName) activeStreams.value[streamName]!.mediaRecorder!.stop() + alertStore.pushAlert(new Alert(AlertLevel.Success, `Stopped recording stream ${streamName}.`)) } /** @@ -218,6 +220,7 @@ export const useVideoStore = defineStore('video', () => { activeStreams.value[streamName]!.mediaRecorder = undefined } + alertStore.pushAlert(new Alert(AlertLevel.Success, `Started recording stream ${streamName}.`)) } // Used to discard a file from the video recovery database