ios-sdk icon indicating copy to clipboard operation
ios-sdk copied to clipboard

Feature Request: Authorise and play URI with trackIndex

Open Fump opened this issue 1 year ago • 0 comments

Hi!

We have a use case where we want to start Spotify music playback of a playlist at a pre-selected trackIndex.

This is possible when connected to the Spotify app through the app remote by using: SPTAppRemotePlayerAPI playItem:skipToTrackIndex:callback:.

However if the Spotify app isn't running in the background we need to launch it before connecting by calling SPTAppRemote authorizeAndPlayURI: or SPTSessionManager initiateSession. Here we can specify a playlist URI to initiate playlist playback when launching Spotify app, but we can't specify what playlist trackIndex we want to start playing when Spotify launches.

I would like to suggest additions to SPTAppRemote and/or SPTConfiguration to allow specifying skipToTrackIndex for associated playURI (if applicable) for when launching the Spotify app from the SDK.

Thanks for your time and consideration!

Fump avatar Jun 10 '24 07:06 Fump