Post

Replies

Boosts

Views

Created

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
932
Apr ’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?
Replies
1
Boosts
0
Views
932
Activity
Apr ’20