Skip to content

fix(youtube): repair Android embedded player initialization - #24

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

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

Conversation

@CodeByArnob

Copy link
Copy Markdown
Owner

Root-cause investigation

The existing screen loaded an HTML document via loadDataWithBaseURL and nested the YouTube iframe without an explicit IFrame API origin or referrer policy. The screenshot shows the player viewport is present but remains entirely black. This change supplies an explicit HTTPS YouTube origin, IFrame API origin parameter, strict-origin referrer policy, WebViewClient, and hardware acceleration.

Changes

  • Configure explicit YouTube iframe origin and enablejsapi=1.
  • Set a referrer policy for the embedded player.
  • Attach WebViewClient and retain WebChromeClient.
  • Enable application hardware acceleration.

Validation

Native CI will verify compile, lint and unit tests. A physical-device playback check is still required; a successful build alone cannot prove YouTube playback works on this device/network.

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