Skip to content

fix: load YouTube embed directly in Android WebView - #25

Open
CodeByArnob wants to merge 2 commits into
mainfrom
fix/webview-youtube-player-mainline
Open

CodeByArnob wants to merge 2 commits into
mainfrom
fix/webview-youtube-player-mainline

Conversation

@CodeByArnob

Copy link
Copy Markdown
Owner

Root-level follow-up

The prior WebView fix branch conflicted after the Material 3 UI PR was merged. This clean mainline PR reapplies the playback correction on top of the merged UI.

Changes

  • Remove the synthetic loadDataWithBaseURL HTML wrapper and load the official HTTPS YouTube embed URL directly in WebView.
  • Attach WebViewClient and WebChromeClient.
  • Enable app hardware acceleration.
  • Keep YouTube's official visible embedded player; no audio extraction or background YouTube playback.

Validation

CI build/lint/unit tests run here. Physical-device playback is still required; the black-screen symptom cannot be conclusively closed from CI alone.

This branch has not been deployed

No deployments
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.

1 participant