Skip to content

Reject HDMI no-signal starts before engine launch - #13

Merged
pjeweb merged 3 commits into
osb/integrationfrom
osb/pr/hdmi-audio-admission
Nov 15, 2026
Merged

pjeweb merged 3 commits into
osb/integrationfrom
osb/pr/hdmi-audio-admission

Conversation

@pjeweb

@pjeweb pjeweb commented Nov 11, 2026 •

Copy link
Copy Markdown

Why

If someone presses Start while the HDMI source sends no signal, the streaming engine can get stuck in a cleanup state. After the camera is plugged back in, the next Start can time out, and Stop doesn't always clear it. The streamer is left with a box that won't start, right when they're ready to go live.

What

  • Start with no HDMI signal is refused before the engine is launched, with the existing "no signal" message that tells the streamer what to do.
  • If the box can't tell whether there's a signal, Start goes ahead as it does today.
  • A missing HDMI audio device keeps its existing audio-source message. Valid video without audio may stream silence.

How: before launching the engine with the onboard HDMI receiver (/dev/hdmirx), the backend asks the receiver for its DV timings, its report of the incoming video format. Only an explicit "no link" or "no lock" answer stops the Start. This avoids the stuck cleanup path; it doesn't fix the engine's own teardown. docs/HDMI-AUDIO.md describes it.

The companion image change for automatic HDMI receiver profile selection is openstreambox/image-building-pipeline#6.

Screenshots

Mock data; the same state at the PR base and head.

Before After
Before: Audio-source start failure message (390 px) After: Audio-source start failure message (390 px)
Before: Audio-source start failure message (1280 px) After: Audio-source start failure message (1280 px)

How to verify

On a box with the onboard HDMI receiver, unplug the camera and press Start: Start is refused with the no-signal message, and the engine isn't launched. Plug the camera back in and Start works on the first try. apps/backend/src/tests/hdmi-audio-signal.test.ts and audio-probe-failure-reason.test.ts cover unknown answers, non-HDMI pipelines and another selected HDMI input.

Testing and limits
  • Backend and frontend suites, rpc, i18n, sender, lint, type checks and both production builds pass. The frontend bundle is effectively unchanged (+60 bytes gzip).
  • Audio and video sync after this change hasn't been checked yet, and the browser and hardware checks weren't re-run for the last update.

Risks

Low. The check only refuses Start on an explicit "no signal" answer; anything unclear behaves as before.


Checklist

  • Docs updated if behavior or structure changed (Rule A: AGENTS.md within budget, README, docs/, versions.yaml)
  • User docs (Rule G): no user-visible change, OR ceralive-docs PR updates English and Spanish, plus ceralive-website PR if a landing claim changed
  • Started from updated main; branch rebased on latest canonical branch (Rule B)
  • Rule D local-scratch reference check passes for tracked files
  • Tests pass; QA evidence attached or linked

@pjeweb pjeweb changed the title Refuse confirmed missing HDMI audio with a reconnect remedy Reject HDMI no-signal starts before engine launch Nov 11, 2026
@pjeweb
pjeweb changed the base branch from fork to osb/review/hdmi-audio-base November 11, 2026 18:50
@pjeweb
pjeweb requested a lite review from Copilot November 13, 2026 23:13
@pjeweb
pjeweb marked this pull request as ready for review November 13, 2026 23:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@pjeweb
pjeweb force-pushed the osb/pr/hdmi-audio-admission branch 2 times, most recently from 75b0697 to ad35f73 Compare November 14, 2026 10:07
@pjeweb
pjeweb changed the base branch from osb/review/hdmi-audio-base to osb/integration November 14, 2026 10:08
@pjeweb
pjeweb merged commit 9c24d7c into osb/integration Nov 15, 2026
6 checks passed
pjeweb added a commit that referenced this pull request Nov 16, 2026
@pjeweb pjeweb added the upstream: waits for intent Needs an issue or maintainer agreement before an upstream proposal. label Nov 16, 2026
pjeweb added a commit that referenced this pull request Nov 17, 2026
pjeweb added a commit that referenced this pull request Nov 17, 2026
pjeweb added a commit that referenced this pull request Nov 18, 2026
pjeweb added a commit that referenced this pull request Nov 18, 2026
pjeweb added a commit that referenced this pull request Nov 19, 2026
pjeweb added a commit that referenced this pull request Nov 21, 2026
pjeweb added a commit that referenced this pull request Nov 22, 2026
pjeweb added a commit that referenced this pull request Nov 23, 2026
pjeweb added a commit that referenced this pull request Nov 24, 2026
pjeweb added a commit that referenced this pull request Nov 24, 2026
@pjeweb

pjeweb commented Nov 25, 2026

Copy link
Copy Markdown
Author

Still carried in the integration train and not upstream, so it continues as #249.

pjeweb added a commit that referenced this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

upstream: waits for intent Needs an issue or maintainer agreement before an upstream proposal.

Development

Successfully merging this pull request may close these issues.

2 participants