Spotify Web API Playback
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've recently been looking into Spotify playback and how to use Web API SDK. Just wanted to share a workflow I though of to see if anyone had any thoughts or suggestions:
Generating a Web API SDK access token through my app
Any Spotify premium account holder can generate a Web API SDK access token based on https://developer.spotify.com/documentation/web-playback-sdk/quick-start/#.
Any Spotify premium account holder can generate a Web API SDK access token based on https://developer.spotify.com/documentation/web-playback-sdk/quick-start/#.
- Can I generate and access that token for a given user from my app?
- The generic token is valid for an hour. In order to get a token that is valid for longer/has refresh tokens, a user needs to request special permission. Can I do that on behalf of the user?
- The generic token is valid for an hour. In order to get a token that is valid for longer/has refresh tokens, a user needs to request special permission. Can I do that on behalf of the user?
Creating a broadcast outlet
Using the token, I can create a broadcast outlet on the userโs browser/app such that the music can be heard from the browser/app instead of the userโs Spotify.
- Is an iFrame the best way to do this?
Using the token, I can create a broadcast outlet on the userโs browser/app such that the music can be heard from the browser/app instead of the userโs Spotify.
- Is an iFrame the best way to do this?
Playing a song on the user's SpotifySelecting the Web Player from the device menu on the user's Spotify
- Is there an API call for this? Does this include fetching all available web players from the userโs Spotify and then choosing the outlet/device we created?
- Is there an API call for this? Does this include fetching all available web players from the userโs Spotify and then choosing the outlet/device we created?
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page