demo · v130

preferInitialWindowPlacement decision tree

Walk through the four questions in the explainer's "when to set preferInitialWindowPlacement" rubric and the page emits the exact documentPictureInPicture.requestWindow() call you should ship — plus a per-answer tally so your team can debug their reasoning.

Q1 — Is the new PiP semantically related to the most-recent one (same VC, same playlist, same chat)?
Q2 — Does the new content need a different aspect ratio than the previous PiP?
Q3 — Time elapsed since last PiP closed (heuristic for "user intent continues")
Q4 — Does your default size differ meaningfully from a typical user-resized one?

      

scoring breakdown

see also