Skip to content

Design a paired Chrome YouTube tab on the XENEON #23

Closed

Description

@FlorianBruniaux

Use case

On a XENEON EDGE, show the picture from a YouTube tab already playing in Chrome and control that same tab by touch. The user explicitly chooses the tab. Audio stays in Chrome; the dashboard receives video only. The feature should work alongside existing widgets without making every widget or browser tab able to control the local server.

Proposed shape for discussion

  • A companion Chrome extension captures only the tab selected by the user, after a browser permission gesture. It reports limited playback metadata and accepts play/pause/seek controls for that tab.
  • A Fremkit provider exposes a local pairing command to the dashboard. A short-lived, single-use code pairs one extension origin to one local dashboard session. Re-pairing replaces the prior sender; codes expire and have an attempt limit. Store any lasting pairing token in Fremkit's secret store.
  • Bind signalling to loopback only. Validate the Host and Chrome-extension Origin, exact session identity, message schema and size, and local ICE candidates. The server exchanges metadata and WebRTC signalling; video flows directly between the browser and the dashboard, without storage or remote relay.
  • Keep the widget iframe's network policy explicit. The current widget CSP uses connect-src 'none'; decide whether the paired local video/signalling endpoints are permitted only for a trusted widget, through the existing bridge, or through a narrower capability. Avoid opening loopback network access to arbitrary registry widgets.
  • Keep the feature optional. If the extension, selected tab or stream disappears, the widget should show a clear unavailable state and leave other dashboard functions intact.

Decisions needed before code

  1. Is a video channel in the core acceptable, and which component owns pairing and authorizes a widget instance?
  2. What exact endpoints may be exposed on 127.0.0.1, and can the existing widget bridge and CSP carry signalling safely without a second server port?
  3. How will non-technical users install and update the companion extension? The current prototype is unpacked/developer-mode; a Chrome Web Store listing has separate ownership and review requirements.
  4. What minimum end-to-end test is required on Chrome and a real XENEON before accepting the widget and bridge?

A prototype exists as draft fork PRs Fremkit bridge #24 and Sietch widget #8. Unit tests cover local gating, pairing expiry/replay, message validation and simulated capture. Live Chrome/XENEON playback has not been verified. Both PRs should remain draft until this design and the core widget bridge are agreed.

Activity

  1. Repository owner locked and limited conversation to collaborators on Oct 17, 2026
  2. converted this issue into a discussion #45 on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions