fix: add safety timeout in stopRecording, extract reset() helper

- extract reset() to ensure clean state in all exit paths
- add 5s timeout guard so UI never stays stuck on 'Saving'
- improve error messages for empty frames and save failures
This commit is contained in:
2026-08-01 16:56:32 +08:00
parent 786230036b
commit 3a5f160453
3 changed files with 55 additions and 48 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -5,7 +5,7 @@
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MJPEG Stream Viewer</title>
<script type="module" crossorigin src="/assets/index-C5dzEsTl.js"></script>
<script type="module" crossorigin src="/assets/index-D4W4a1Z1.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DuJPD2XK.css">
</head>
<body>