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

Deezer JavaScript SDK invisible player not working in Chrome. #2

Open
cyrstron opened this issue May 2, 2020 · 2 comments
Open

Deezer JavaScript SDK invisible player not working in Chrome. #2

cyrstron opened this issue May 2, 2020 · 2 comments

Comments

@cyrstron
Copy link

cyrstron commented May 2, 2020

It looks like because of Chrome restriction to iframe autoplay I can't get invisible player working in Chrome.

DZ.player.play() just not seems to work and DZ.player.seek(1) fails with this one:

player-HTML5Renderer.8af98a26e99674f368c5.js:1 Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD

Any ideas how to handle it?

@cyrstron cyrstron changed the title DeezerJavaScript SDK invisible player not working in Chrome. Deezer JavaScript SDK invisible player not working in Chrome. May 2, 2020
@croustibat
Copy link

Hi,

Actually, it's not a Deezer issue. Chrome made some change in it's autoplay policy and you need first to get a user interaction on the page to make it works (mouse click) :

https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

hope it helps,

@cyrstron
Copy link
Author

cyrstron commented May 2, 2020

Hi, thanks for your answer.

But the problem is that I have to make user click hidden iframe to make player work. Clicks on the outer page in Chrome does not help. I've already tried to set up PWA but it does not help too.

And I still need to keep it without visible iframe. So I'll be very grateful for any ideas.

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

No branches or pull requests

2 participants