Skip to content

Commit 9fb870c

Browse files
committed
queries
1 parent 0e617c4 commit 9fb870c

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

apps/desktop/src/utils/queries.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,11 @@ export function createCameraMutation() {
272272
? e.message
273273
: String(e);
274274

275-
if (message.includes("DeviceNotFound")) {
275+
if (
276+
message.includes("DeviceNotFound") ||
277+
message.includes("CameraTimeout") ||
278+
message.includes("Failed to initialize camera")
279+
) {
276280
setOptions("cameraID", null);
277281
console.warn("Selected camera is unavailable.");
278282
return;

apps/desktop/src/utils/tauri.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ export type TextSegment = { start: number; end: number; track?: number; enabled?
585585
export type TimelineConfiguration = { segments: TimelineSegment[]; zoomSegments: ZoomSegment[]; sceneSegments?: SceneSegment[]; maskSegments?: MaskSegment[]; textSegments?: TextSegment[]; captionSegments?: CaptionTrackSegment[]; keyboardSegments?: KeyboardTrackSegment[] }
586586
export type TimelineSegment = { recordingSegment?: number; timescale: number; start: number; end: number }
587587
export type TranscriptionEngine = "Whisper" | "Parakeet"
588-
export type UploadMeta = { state: "MultipartUpload"; video_id: string; file_path: string; pre_created_video: VideoUploadInfo; recording_dir: string } | { state: "SinglePartUpload"; video_id: string; recording_dir: string; file_path: string; screenshot_path: string } | { state: "Failed"; error: string } | { state: "Complete" }
588+
export type UploadMeta = { state: "MultipartUpload"; video_id: string; file_path: string; pre_created_video: VideoUploadInfo; recording_dir: string } | { state: "SinglePartUpload"; video_id: string; recording_dir: string; file_path: string; screenshot_path: string } | { state: "SegmentUpload"; video_id: string; pre_created_video: VideoUploadInfo; recording_dir: string } | { state: "Failed"; error: string } | { state: "Complete" }
589589
export type UploadMode = { Initial: { pre_created_video: VideoUploadInfo | null } } | "Reupload"
590590
export type UploadProgress = { progress: number }
591591
export type UploadProgressEvent = { video_id: string; uploaded: string; total: string }

0 commit comments

Comments
 (0)