Skip to content

feat(pip): report PiP state changes the host didn't request - #44

Merged
bilipp merged 1 commit into
mainfrom
feat/pip-active-callback
Oct 6, 2026
Merged

bilipp merged 1 commit into
mainfrom
feat/pip-active-callback

Conversation

@bilipp

@bilipp bilipp commented Oct 5, 2026

Copy link
Copy Markdown
Owner

PictureInPictureBridge.isActive moved only through its delegate and nothing
could observe it, so the host never learned that the system had started PiP
by itself or that the user had closed the window with its ✕. Lume showed the
wrong PiP button state, paused the stream when the app went to the background
during PiP, and kept the session alive after a dismissal.

onActiveChange fires on the main actor once per actual change; a stop after a
failed start doesn't repeat the false.

PictureInPictureBridge.isActive moved only through its delegate and nothing
could observe it, so the host never learned that the system had started PiP
by itself or that the user had closed the window with its ✕. Lume showed the
wrong PiP button state, paused the stream when the app went to the background
during PiP, and kept the session alive after a dismissal.

onActiveChange fires on the main actor once per actual change; a stop after a
failed start doesn't repeat the false.
@bilipp
bilipp merged commit 7c39cf9 into main Oct 6, 2026
4 checks passed
@bilipp
bilipp deleted the feat/pip-active-callback branch October 6, 2026 18:49
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.

1 participant