feat(phase 2.4): pin restart_on_activate=true on ffmpeg_source (S2 kill switch) #25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/phase-2.4-restart-when-active"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Phase 2.4 of the Stream-a-Thon plan. Pins
restart_on_activate: trueon theffmpeg_sourceMedia Source path so OBS retries within ~2 s of the next activation when the upstream Streamlink-fed URL stalls (pre-mortem scenario S2 — Twitch ad break / HLS reset / network blip).Plan-text drift fixed
The plan referenced
lib/obsClient.js:406,425,498with setting namerestart_when_active. Phase 1.1's refactor moved the ffmpeg_source settings intolib/streamInputConfig.jsas the single source of truth (also consumed byscripts/convertBrowserToMedia/transform.ts). The OBS property name forffmpeg_sourceisrestart_on_activate(notrestart_when_active— that's abrowser_sourceproperty).Browser-source sites in
obsClient.jsare intentionally left at false: V1 is on the deprecation path (Phase 1.3), andrestart_when_active=trueon browser sources causes URL reload + visible flicker on scene activation, which we do not want during the live event.Files
lib/streamInputConfig.js:18—restart_on_activate: false → truewith an inline comment explaining why browser_source stays falselib/__tests__/obsClient.test.js— flip the Phase 2.4 pin test from `toBe(false)` to `toBe(true)` and drop the "will flip it" TODOTest plan
tsc --noEmitcleannext buildcleannpm run audit:sqlite-opensclean