Commit cd6ffa5
committed
Fix AI Safety mode switching: sample autoplay, camera toggle
- Fix switchMode(): stop camera stream when leaving camera mode,
clear video.src when leaving sample mode, call startCamera()
when entering camera mode
- Fix loadSampleVideo(): clear srcObject before setting src
- Default to Sample Video mode on page load (autoplay)
- Update HTML: Sample Video button active by default, camera
group hidden by default1 parent 281a41d commit cd6ffa5
2 files changed
+22
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1109 | 1109 | | |
1110 | 1110 | | |
1111 | 1111 | | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
1112 | 1119 | | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
1113 | 1123 | | |
1114 | 1124 | | |
1115 | 1125 | | |
1116 | 1126 | | |
1117 | 1127 | | |
1118 | | - | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
1119 | 1131 | | |
1120 | 1132 | | |
| 1133 | + | |
| 1134 | + | |
1121 | 1135 | | |
1122 | 1136 | | |
1123 | 1137 | | |
1124 | 1138 | | |
1125 | 1139 | | |
| 1140 | + | |
| 1141 | + | |
1126 | 1142 | | |
1127 | 1143 | | |
1128 | 1144 | | |
| |||
1271 | 1287 | | |
1272 | 1288 | | |
1273 | 1289 | | |
1274 | | - | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
1278 | | - | |
1279 | | - | |
1280 | | - | |
1281 | | - | |
1282 | | - | |
1283 | | - | |
1284 | | - | |
1285 | | - | |
1286 | | - | |
1287 | | - | |
1288 | | - | |
1289 | | - | |
1290 | | - | |
1291 | | - | |
1292 | | - | |
| 1290 | + | |
| 1291 | + | |
1293 | 1292 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
| 456 | + | |
457 | 457 | | |
458 | | - | |
| 458 | + | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
| 461 | + | |
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| |||
0 commit comments