Prototype: YouTube IFrame embed in Linux and Android webviews #94
Labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
SBDeveloper/medley#94
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Part of #93
Why this can't be delegated
Needs manual testing on a real Android device and the Linux (WebKitGTK) build, and a judgment call on the result.
Question to answer
Does the official YouTube IFrame player play a video inside the Tauri webview on Linux (WebKitGTK) and on Android, in a throwaway pane?
What to check
referrerpolicy/originparameter, or loading the embed from an allowed host), and what that costs.Done when
A comment here states, per platform, works / works with fix X / doesn't work, with evidence. If both work,
docs/adr/0022-video-mode-embeds-the-youtube-player.mdmoves to accepted and #93 gets an agent brief. If not, revisit ADR 0022.Out of scope
Matching, YouTube Data API, Queue integration, settings UI. The prototype is throwaway; do not merge it.
Linux (WebKitGTK, release build, origin
tauri://localhost): direct IFrame embed fails with error 153 for all four variants (youtube.com / nocookie, with / withoutoriginparam). Works with fix: player page served fromhttp://localhost:<port>, iframed into the host pane and driven viapostMessage. Verified play, pause, relative seek, position and ended (state 0).Android (debug APK, origin
http://tauri.localhost): works direct, no fix needed. The localhost-iframe approach also works.Cost of the Linux fix: a localhost HTTP server in the Rust shell, plus
frame-src http://localhost:<port>andscript-srcfor youtube.com / s.ytimg.com in the CSP. Recommend the localhost player page on both platforms for one code path.Caveat: Android was tested as a debug build; re-check a release build when implementing.
Prototype (throwaway, not for merge): branch
prototype/94-youtube-embed. ADR 0022 now accepted.