Skip to content

Soundcloud - fix autoplay delegation - #614

Merged
cookpete merged 2 commits into
cookpete:masterfrom
talibnelson:soundcloud-fix-autoplay-delegation
Apr 10, 2019
Merged

Soundcloud - fix autoplay delegation#614
cookpete merged 2 commits into
cookpete:masterfrom
talibnelson:soundcloud-fix-autoplay-delegation

Conversation

@talibnelson

Copy link
Copy Markdown
Contributor

Since the Soundcloud Player is loaded via an iframe, there are instances when that player will not be allowed to play in Chrome, even after a user has interacted with the parent document. The parent receives the autoplay permission but it's never delegated to the iframe because it currently does not have a "feature policy" attribute.

More information here: https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#iframe

This PR adds that attribute for autoplay and updates the accompanying test.

@cookpete
cookpete merged commit 7d8dedd into cookpete:master Apr 10, 2019
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.

2 participants