Skip to content

Camera popup look: live badge, full-bleed media, inline buttons - #71

Merged
mhoogenbosch merged 1 commit into
mhoogenbosch:masterfrom
pelkiegr:feat/camera-popup-look
Oct 14, 2026
Merged

mhoogenbosch merged 1 commit into
mhoogenbosch:masterfrom
pelkiegr:feat/camera-popup-look

Conversation

@pelkiegr

@pelkiegr pelkiegr commented Oct 14, 2026 •

Copy link
Copy Markdown

Three opt-in options for a modern TV camera notification (the kind where the camera fills the top of the card, with a "Live" pill on the video and compact text underneath). Each is off by default; nothing changes for existing popups.

Camera popup with full-bleed video, Live badge and inline close button

(full screen)

  • liveBadge: a "Live" pill over the stream area that appears on the first rendered frame, so it never sits on the poster. It covers all stream types that use the shared poster/first-frame path (video_url/camera stream, WHEP, web). liveBadgeColor defaults to amber #FFA500 (parsed with parseColorOrDefault), and liveBadgePosition takes top_left / top_right / bottom_left / bottom_right (default).
  • mediaFullBleed: the media frame runs edge to edge across the top. The popup keeps only its border inset, the frame's top corners are clipped to the popup's corner radius (ViewOutlineProvider), and the title, message and button rows carry the padding. The text block under the media is compact: a smaller gap and no extra font padding.
  • buttonsInline: buttons sit at the end of the title/message row instead of a row of their own. That's handy for a single compact close button (label: "✕"), and pairs well with the button style options in Make popup button colors and corner radius configurable #70.

Tests: LiveBadgeTest (defaults, color, corner mapping) and MediaFullBleedTest (defaults). The suite passes.

Tested on an onn 4K Streaming Box (Android 14): a camera_entity stream popup with all three options plus #69/#70, as in the screenshot.

The ha-pipup side: mhoogenbosch/ha-pipup#44.

🤖 Generated with Claude Code

Options for a modern TV camera notification, each off by default:

- liveBadge: a "Live" pill over the stream once the first frame renders
  (never over the poster); liveBadgeColor (default amber) and
  liveBadgePosition (any corner, default bottom right).
- mediaFullBleed: the video or image runs edge to edge across the top,
  its top corners clipped to the popup's corner radius; title, message
  and buttons keep the padding, in a compact text block.
- buttonsInline: buttons at the end of the title/message row instead of
  a row of their own, e.g. a single compact close button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mhoogenbosch
mhoogenbosch merged commit 20c2ccb into mhoogenbosch:master Oct 14, 2026
1 check passed
mhoogenbosch added a commit that referenced this pull request Oct 14, 2026
0.28.0: camera popup look, button style, video height (#69, #70, #71)
@pelkiegr
pelkiegr deleted the feat/camera-popup-look branch October 14, 2026 22:53
davbebawy pushed a commit to davbebawy/PiPup that referenced this pull request Oct 30, 2026
…angelog for mhoogenbosch#69-mhoogenbosch#71

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants