§16.13: Picture-in-Picture replay mini-player When navigating back to a replay page where PIP was active, the restoration logic was creating duplicate canvas elements (the placeholder from the new DOM and the restored canvas from PIP). Changes: - Remove placeholder canvas before inserting restored PIP canvas - Set 'replay-canvas' ID on restored canvas for TheaterMode and other consumers - Use consistent 'actualCanvas' variable throughout initialization The full PIP flow now works: 1. User starts replay on /watch/replay/:id 2. Clicks nav link → canvas reparents to floating mini-player 3. Playback continues uninterrupted 4. Click "return" → canvas reparents back to inline wrapper 5. Replay resumes at same tick Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .gitignore | ||
| app.html | ||
| CLOUDFLARE_DEPLOYMENT.md | ||
| DEPLOYMENT_INSTRUCTIONS.md | ||
| embed.html | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| pages.json | ||
| tsconfig.json | ||
| vite.config.ts | ||