feat: v1.2.0 — auto-reconnect, recording, monitor bounds, WASAPI loopback

- Auto-reconnect: stream retries with exponential backoff (2s→30s max)
  on unexpected exit; stops only when user clicks Stop
- Recording: global RecordingBar with folder picker, segment duration (min),
  per-stream checkbox, Select All; uses FFmpeg tee muxer for simultaneous
  SRT + segmented .ts file output
- Monitor capture: PowerShell System.Windows.Forms.Screen gives exact
  pixel bounds (x/y/width/height); per-monitor deviceName is now unique
  (desktop_monitor_N); gdigrab uses -offset_x/-offset_y/-video_size
- Window capture: windowTitle now explicitly propagated in handleVideoSelect
- System audio: added WASAPI Loopback option (no VB-Audio required),
  existing virtual-audio-capturer kept as fallback
- Reconnecting event forwarded to renderer; status shows "Reconnecting…"
  with attempt count in logs
- IPC: pick-folder (dialog.showOpenDialog) and open-folder (shell.openPath)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
admin
2026-04-22 12:10:39 +03:00
parent 6b0c2ca0ae
commit acbd3b6349
11 changed files with 659 additions and 264 deletions
+160
View File
@@ -761,3 +761,163 @@ html, body, #root {
/* ========== SELECT OPTION STYLING ========== */
option { background: #1a1a2e; color: var(--text-primary); }
option:disabled { color: var(--text-muted); }
/* ========== RECORDING BAR ========== */
.recording-bar {
display: flex;
align-items: center;
gap: 12px;
padding: 6px 14px;
background: rgba(239, 68, 68, 0.06);
border-bottom: 1px solid rgba(239, 68, 68, 0.2);
flex-shrink: 0;
flex-wrap: wrap;
min-height: 38px;
}
.rec-label {
font-size: 11.5px;
color: var(--text-secondary);
white-space: nowrap;
flex-shrink: 0;
}
.rec-label-unit {
font-size: 11.5px;
color: var(--text-muted);
flex-shrink: 0;
}
.rec-folder-section {
display: flex;
align-items: center;
gap: 6px;
flex: 1;
min-width: 0;
}
.rec-folder-path {
font-size: 11.5px;
color: var(--accent);
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 260px;
text-decoration: underline;
text-underline-offset: 2px;
}
.rec-folder-path:hover { color: var(--accent-hover); }
.rec-folder-empty {
font-size: 11.5px;
color: var(--text-muted);
font-style: italic;
}
.rec-segment-section {
display: flex;
align-items: center;
gap: 5px;
flex-shrink: 0;
}
.rec-segment-input {
width: 56px;
background: var(--bg-input);
border: 1px solid var(--border);
color: var(--text-primary);
border-radius: var(--radius-sm);
padding: 3px 6px;
font-size: 12px;
text-align: center;
}
.rec-segment-input:focus {
outline: none;
border-color: var(--border-focus);
}
.rec-select-section {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
.rec-selectall-label {
display: flex;
align-items: center;
gap: 5px;
cursor: pointer;
font-size: 11.5px;
color: var(--text-secondary);
user-select: none;
padding: 3px 8px;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
background: transparent;
transition: all 0.15s;
}
.rec-selectall-label:hover { border-color: var(--red); color: var(--red); }
.rec-selectall-label--on { border-color: var(--red); color: var(--red); background: var(--red-dim); }
.rec-selectall-label--partial { border-color: var(--orange); color: var(--orange); }
.rec-selectall-box { font-size: 14px; line-height: 1; }
.rec-active-badge {
font-size: 10px;
font-weight: 700;
padding: 2px 6px;
border-radius: 8px;
background: var(--red);
color: #fff;
}
.rec-warn {
font-size: 11px;
color: var(--orange);
flex-shrink: 0;
}
/* btn--sm and btn--outline for RecordingBar */
.btn--sm {
padding: 3px 8px;
font-size: 11.5px;
height: auto;
}
.btn--outline {
background: transparent;
border: 1px solid var(--border-bright);
color: var(--text-secondary);
}
.btn--outline:hover:not(:disabled) {
border-color: var(--accent);
color: var(--accent);
background: var(--accent-dim);
}
/* ========== RECORD CHECKBOX IN STREAM SETTINGS ========== */
.rec-checkbox-label {
color: var(--text-secondary);
flex-wrap: wrap;
row-gap: 4px;
}
.rec-checkbox-label--on {
color: var(--red);
}
.rec-checkbox-label--on input { accent-color: var(--red); }
.rec-warn-inline {
font-size: 11px;
color: var(--orange);
margin-left: 4px;
}
.rec-folder-hint {
font-size: 11px;
color: var(--text-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 220px;
margin-left: 4px;
}