Open source video conferencing app powered by LiveKit. Built with Django and React.
π(frontend) track errors when starting or stopping a recording
lebaudantoine52e5d99e8328
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2d08eb06..fa2ab6ee 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -8,6 +8,10 @@ and this project adheres to## [Unreleased]+### Added++- π(frontend) track errors when starting or stopping a recording+### Changed- β¨(backend) accept form-urlencoded on the user token endpointdiff --git a/src/frontend/src/features/recording/hooks/useMutateRecording.ts b/src/frontend/src/features/recording/hooks/useMutateRecording.tsindex a745b72d..2f8f2f5b 100644--- a/src/frontend/src/features/recording/hooks/useMutateRecording.ts+++ b/src/frontend/src/features/recording/hooks/useMutateRecording.ts@@ -1,17 +1,20 @@import { useStartRecording, useStopRecording } from '@/features/recording'import { recordingStore } from '@/stores/recording'+import { captureEvent } from '@/features/analytics/telemetry'export const useMutateRecording = () => {const { mutateAsync: startRecording, isPending: isPendingToStart } =useStartRecording({onError: () => {recordingStore.isErrorDialogOpen = 'start'+ captureEvent('error-starting-recording')},})const { mutateAsync: stopRecording, isPending: isPendingToStop } =useStopRecording({onError: () => {recordingStore.isErrorDialogOpen = 'stop'+ captureEvent('error-stopping-recording')},})