Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set bundleId of app as the baseURL for the webView. #371

Merged
merged 3 commits into from
May 8, 2020
Merged

Set bundleId of app as the baseURL for the webView. #371

merged 3 commits into from
May 8, 2020

Conversation

brol1dev
Copy link
Contributor

@brol1dev brol1dev commented May 7, 2020

Lazy load the originURL and always set it to the bundleId of the app. Prefix it with http:// if not the webView will not load correctly.

Lazy load the originURL and always set it to the bundleId of the app. Prefix it with http:// if not the webView will not load correctly.
Classes/YTPlayerView.m Outdated Show resolved Hide resolved
We always want the origin attribute from the iFrame API (https://developers.google.com/youtube/player_parameters#origin) to be consistent with the webView.baseURL. This means we ignore what a user might set as origin in the playerVars.
@todd-patterson todd-patterson merged commit a82ce9d into youtube:master May 8, 2020
@brol1dev brol1dev deleted the feat/originUrl branch May 11, 2020 18:01
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.

None yet

3 participants