Announcements

Help Wizard

Step 1

NEXT STEP

Click on playbutton closes webpage on ipad

Click on playbutton closes webpage on ipad

Hi all,

 

I try to implement the spotify play button on a website with a dynamic tracklist.

Everything works fine within every browser, except on the ipad.

When i touch the play button on the ipad, there is a message to open the spotify app or to download it.

When the spotify app opens, the webpage is closed, but that is not what i want. The music should be on the background when browsing the site.

 

Is it possible to play a track without losing people from my website?

 

Thanks in advance for every answer!

 

Best regards,

 

Drewes

 

 

Drewes

Reply
2 Replies

i just tested it out for myself Droobie and if you use the Http Playlist link they stay on the site

Hi Michael,

 

Thanks for your reply!

What exactly do you mean with the http playlist link? the open.spotify/user/playlist link?

 

The problem with that link is that it is a pre-defined playlist, which i don't have.

Within a wizard on the website, users select a couple of tracks they like and play it with the spotify play button.

The code for that playbutton is as follows: (where username is the name of the user and codes is a comma seperated list of track codes)

 

<iframe src="https://embed.spotify.com/?uri=spotify:trackset:'+username+':'+codes+'" frameborder="0" allowtransparency="true" width="300" height="380"></iframe>

 

i tried http embed as well, but that didn't seem to work 🙂

 

 

 

When i click on it on the ipad, the webpage is closed.

 

Thanks in advance!

 

Kind regards,

 

Drewes

 

 

Suggested posts