-1

当我单击播放按钮时,Spotify 播放器按钮不会播放,而是将我重定向到 Spotify 站点,即使文档旨在让它在您的网站上播放时...这里的文档https://developer .spotify.com/technologies/widgets/spotify-play-button/#introduction

代码示例就是这个,我希望能够让它在我的网站上播放,而不会被重定向到另一个网站。

<iframe src="https://embed.spotify.com/?uri=spotify:track:4bz7uB4edifWKJXSDxwHcs" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>
4

1 回答 1

0

The Spotify Play button requires that the user hitting play to have a Spotify account to hear music. Once the user is signed in, it will use either the Web Player at play.spotify.com or the desktop client to play music.

One of these two Spotify clients be active in order for you to hear music. That's why you're getting redirected to the Spotify site. If the user has the desktop client open, that will play music instead and no redirection will occur.

于 2013-11-14T16:03:36.480 回答