Spotify:如何使用新 API 嵌入音轨集?
Spotify: How to embed a trackset with the new API?
过去的工作方式:
<iframe width="500" height="80" frameborder="0" allowtransparency="true"
src="https://embed.spotify.com/?uri=spotify:trackset:My personal two tracks:1Lzzo2Ps2ivKxEKDyID4IO,3Qy9NQz8XuOhPqefJobvhd">
</iframe>
这呈现为具有自定义 集 曲目的嵌入式播放器 而无需 创建播放列表(并嵌入播放列表)。现在这将打开一个新选项卡,显示 "Sorry, couldn't find that." 并返回 404 Not Found。 Here's a jsfiddle(不是我的)显示问题。
我的问题:目前是否有一种无需创建播放列表即可嵌入多个曲目的方法?我知道文档说 how to get information for multiple tracks and the docs explaining how to embed a single item(一首曲目,一个播放列表,...),但我如何组合这些?
曲目集已从 Spotify 播放按钮中删除。正如网站上所见 (https://developer.spotify.com/technologies/widgets/spotify-play-button/):
Deprecation of tracksets: Please note that we have deprecated the
support for tracksets in the Spotify Play Button and will be removed
on July 15th 2017.
We recommend that you use Spotify Play Buttons for playlists instead.
You can create playlists dynamically using our Web API and get the
benefits of being fully integrated with all Spotify clients. This
means users will be able to search for your playlists and subscribe to
them.
所以回答你的问题 - 不,没有创建播放列表就无法嵌入多个曲目(不是专辑等)。
过去的工作方式:
<iframe width="500" height="80" frameborder="0" allowtransparency="true"
src="https://embed.spotify.com/?uri=spotify:trackset:My personal two tracks:1Lzzo2Ps2ivKxEKDyID4IO,3Qy9NQz8XuOhPqefJobvhd">
</iframe>
这呈现为具有自定义 集 曲目的嵌入式播放器 而无需 创建播放列表(并嵌入播放列表)。现在这将打开一个新选项卡,显示 "Sorry, couldn't find that." 并返回 404 Not Found。 Here's a jsfiddle(不是我的)显示问题。
我的问题:目前是否有一种无需创建播放列表即可嵌入多个曲目的方法?我知道文档说 how to get information for multiple tracks and the docs explaining how to embed a single item(一首曲目,一个播放列表,...),但我如何组合这些?
曲目集已从 Spotify 播放按钮中删除。正如网站上所见 (https://developer.spotify.com/technologies/widgets/spotify-play-button/):
Deprecation of tracksets: Please note that we have deprecated the support for tracksets in the Spotify Play Button and will be removed on July 15th 2017.
We recommend that you use Spotify Play Buttons for playlists instead. You can create playlists dynamically using our Web API and get the benefits of being fully integrated with all Spotify clients. This means users will be able to search for your playlists and subscribe to them.
所以回答你的问题 - 不,没有创建播放列表就无法嵌入多个曲目(不是专辑等)。