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

Safari issues #1

Open
philyboysmith opened this issue Mar 21, 2022 · 2 comments
Open

Safari issues #1

philyboysmith opened this issue Mar 21, 2022 · 2 comments

Comments

@philyboysmith
Copy link

Hi there, Great package. Thanks for all your work.

The example doesn't work in Safari on a Mac or on iOS for me. The track immediately pauses? Not sure if this is a known issue with the SDK or not.

@y-hiraoka
Copy link
Owner

y-hiraoka commented Mar 22, 2022

I didn't reproduce the problem in my environment.

Perhaps you are not a Spotify Premium member? WebPlaybackSDK requires a premium membership.

Alternatively, playback in Safari has some limitations (no background playback, etc.)

https://developer.spotify.com/documentation/web-playback-sdk/

@StefanLobbenmeier
Copy link
Contributor

To work around the background playback you have to call activateElement on the spotify player during an UI interaction (like button press): https://developer.spotify.com/documentation/web-playback-sdk/reference#spotifyplayeractivateelement

Maybe this should also be included in the samples in the readme

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

3 participants