Play full spotify track inside my own website using spotify web api

前端 未结 2 688
予麋鹿
予麋鹿 2020-12-08 14:28

So I was taking a look at the spotify web api and it apparently allows you to play a preview of the song, but I was wondering if there is any way to play the full spotify so

2条回答
  •  旧时难觅i
    2020-12-08 14:56

    Update from the future: there is now a way to play full tracks in the web: https://beta.developer.spotify.com/documentation/web-playback-sdk/

    The Web Playback SDK is client-side JavaScript library which allows you to create a new player in Spotify Connect and play any audio track from Spotify in the browser via Encrypted Media Extensions. It’s the same technology we use to power our Web Player experience.

    Some things you can do with the Web Playback SDK:

    • Create a new player in Spotify Connect
    • Stream an audio track in supported browsers
    • Get metadata for the current track
    • Get metadata about the user’s listening session
    • Control local playback (pause, resume, volume, etc)

提交回复
热议问题