Post

Replies

Boosts

Views

Activity

Getting a USER_CANCELLED token error while trying to authenticate using Apple MusicKit SDK
Hi guys,I'm trying to interface the Apple Musickit SDK to my android app. I was able to get the authentication working initially. But I'm getting a USER_CANCELLED token error on my phone every time I try to connect. I'm getting the same error now while trying to connect on the example sdk_test app(even though it was working earlier) that is shipped with the SDK, What's fishy is that the code runs fine on other phones except mine now(using the same dev token too). Can someone please help me out on this?
15
0
2.4k
Mar ’20
Apple MusicKit SDK(Android) delay in playback
I'm trying to interface the Apple Musickit SDK to my android app. I'm facing a lot of delay at the start of a song which is heavily going to affect the user experience. To overcome this delay, I tried to add a few tracks(queueAdd1 is a apple music id) to the queue by doing the following-List Q1 = playerController.getQueueItems(); boolean canAppend = playerController.canAppendToPlaybackQueue(); queueProviderBuilder.items(MediaItemType.SONG,queueAdd1); playerController.addQueueItems(queueProviderBuilder.build(); PlaybackQueueInsertionType.INSERTION_TYPE_AFTER_CURRENT_ITEM); List Q2 = playerController.getQueueItems();But these songs are not getting added to the queue for some reason. Do I need to call playercontroller.prepare() also on this to add tracks to the queue?Or is there a better way to load tracks faster?
1
0
754
Apr ’20