Skip to content

Add picture-in-picture - #4

Merged
graszka22 merged 2 commits into
mainfrom
graszka22/pip
Oct 28, 2026
Merged

graszka22 merged 2 commits into
mainfrom
graszka22/pip

Conversation

@graszka22

Copy link
Copy Markdown
Contributor

Keep a video tile in the system picture-in-picture window while the app is in the background, on iOS and Android.

Keep a video tile in the system picture-in-picture window while the app is in the background, on iOS and Android.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment on lines +303 to +305
closeOnForeground = true
videoTrack = nil
sourceView.removeFromSuperview()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

After this runs, we can never get into PiP again, for example if someone reconnects while we see them via PiP

Restore the native controller after its source view is removed, and update the active window when a remote peer reconnects while Flutter is backgrounded.

Co-authored-by: Cursor <cursoragent@cursor.com>
@graszka22
graszka22 requested a review from Magmusacy October 28, 2026 11:09
@graszka22
graszka22 merged commit c86b49a into main Oct 28, 2026
2 checks passed
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.

3 participants