Add picture-in-picture to the video player #8
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/picture-in-picture"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
#pipBtnnext to#fullscreenBtnin the bottom bar, using the standardrequestPictureInPicture()/exitPictureInPicture()API - confirmed present on a real Chromium build (relevant for Android Chrome, since this was asked for with mobile specifically in mind).enterpictureinpicture/leavepictureinpicture, not just this button's own clicks.Test plan
npm run typecheck/npm run build(client)document.pictureInPictureEnabledistrue, and the exact show/hide + click logic against a real video correctly shows the button and cleanly catches the resultingInvalidStateError(a sourceless test video) instead of it becoming an uncaught exception🤖 Generated with Claude Code