Skip to content

Commit

Permalink
video: Add logs and alerts to video recording pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Feb 21, 2024
1 parent 226c0c7 commit c78e2b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stores/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const useVideoStore = defineStore('video', () => {
mediaRecorder: undefined,
timeRecordingStart: undefined,
}
console.debug(`Activated stream '${streamName}'.`)
}

/**
Expand Down Expand Up @@ -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}.`))
}

/**
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c78e2b2

Please sign in to comment.