Skip to content

always-available: support disabling recording when source is offline#5767

Open
AbdElrahmaN31 wants to merge 1 commit into
bluenviron:mainfrom
AbdElrahmaN31:feat/always-available-recorded
Open

always-available: support disabling recording when source is offline#5767
AbdElrahmaN31 wants to merge 1 commit into
bluenviron:mainfrom
AbdElrahmaN31:feat/always-available-recorded

Conversation

@AbdElrahmaN31
Copy link
Copy Markdown

Summary

Add alwaysAvailableRecorded parameter that controls whether recording happens during offline periods for always-available paths. When set to false, recording only starts when a real source is connected and stops when it disconnects.

Default is true, preserving current behavior.

Closes #5587

Changes

  • internal/conf/path.go: Add AlwaysAvailableRecorded config field (default: true)
  • internal/core/path.go: Conditional recording start/stop based on the new flag in setAvailable(), doAddPublisher(), executeRemovePublisher(), and doReloadConf()
  • internal/conf/conf_test.go: Update test expected struct
  • docs/2-features/08-always-available.md: Document the new parameter

Testing

  • All config tests pass (go test ./internal/conf/...)
  • Core tests pass (pre-existing SRT flaky test is unrelated)
  • Build succeeds (go build ./...)

…luenviron#5587)

Add `alwaysAvailableRecorded` parameter that controls whether recording
happens during offline periods for always-available paths. When set to
false, recording only starts when a real source is connected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to prevent 24/7 recording when alwaysAvailable is enabled

1 participant