Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Playing unplayable track (grayed out) with Android SDK not handled (no error thrown)

Playing unplayable track (grayed out) with Android SDK not handled (no error thrown)

Plan

Premium

Country

France

Device

Sony Xperia Compact XZ1

Operating System

Android

 

My Question or Issue
When I play a unplayable song (no rights/licence in my country) via the Android SDK with skipToIndex() nothing happens. I would expect an error to be thrown. When I use another method afterwards like getPlayerState() I usually get an timed out error.

 

I don't play greyed out songs on purpose but I guess licensing deals can change and when at some point my app tries to play one of this songs I would like to handle it gracefully by reacting to an error.

I repost this github issue here because it seems this is now the official way to go:
https://github.com/spotify/android-sdk/issues/292

 

Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random