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

Error trying to play songs from Local Files (Updated for v1.2.0)

Open WickedChicken42 opened this issue 6 years ago • 3 comments

I am able to read and retrieve a song from a user's playlist that is from their Local Files. I have the URI: spotify:local:::Organ+1:25 (a 25 second mp3 titled Organ 1).

Is it possible to play these songs through the iOS SDK? Initial attempts have resulted in the following error output as a part of the error object created in the play(trackURI) closure:

Spotify Error: Optional(Error Domain=com.spotify.app-remote Code=-2001 "The request failed." UserInfo={NSLocalizedDescription=The request failed., NSUnderlyingError=0x280b89bf0 {Error Domain=com.spotify.app-remote.wamp-client Code=-3000 "(null)" UserInfo={error-identifier=Unable to start playback., message-type=8}}, NSLocalizedRecoverySuggestion=, NSLocalizedFailureReason=Unable to start playback.})

WickedChicken42 avatar Nov 01 '19 06:11 WickedChicken42

Using the new iOS framework v1.2.0, attempting to obtain the track as a SPTAppRemoteContentItem described above which is a Local File via the new fetchContentItem(forURI) method I receive the following error:

Error Domain=com.spotify.app-remote.wamp-client Code=-3000 "(null)" UserInfo={error-identifier=error.not_available, message-type=8}

Could use some direction on how to best access a user's tracks that are part of Spotify's Local Files music collection.

WickedChicken42 avatar Nov 20 '19 21:11 WickedChicken42

Any suggestions Spotify? It's been several months.

WickedChicken42 avatar Jan 28 '20 01:01 WickedChicken42

@WickedChicken42 Did you find a solution? I met a similar problem when I tired to use the seek method.

BOSSDAI avatar Sep 07 '21 17:09 BOSSDAI