Questions tagged [apple-musickit]

The MusicKit framework allows iOS apps to play a user's Apple Music & local music.

Introduced with iOS 11, MusicKit on iOS lets users play Apple Music and their local music library natively from third party apps and games. When a user provides permission to their Apple Music account, an iOS app can create playlists, add songs to their library, and play any of the millions of songs in the Apple Music catalog. If the app detects that the user is not yet an Apple Music member, you can offer a trial from within your app.

169 questions
1
vote
1 answer

Error when authenticate MusicKit instance

whenever I try to authenticate a MusicKit instance the popup alway shows 'Problem Connecting There may be a network issue. '. When reloading the popup it shows the login screen, but after I did log in it shows the same error page again. On the first…
CptCookie
  • 11
  • 3
1
vote
0 answers

Array Function of MPMediaItem Very Slow

I'm trying to edit the queue of my music player using the applicationQueuePlayer and the perform method (details here). However, whenever I apply any array function (map, filter etc.), it takes many seconds to complete, leading to (I think) data…
1
vote
1 answer

SKCloudServiceController.requestAuthorization gets stuck upon authorization

I am referring to the following SKCloudServiceController.requestAuthorization method. Once the status is authorized, I would like to update @State var showStart = false so that the view can be pushed to the next one. if (showStart) { …
Papi
  • 255
  • 1
  • 2
  • 13
1
vote
0 answers

How do you get an ISRC from Apple Music on-device?

Is there any way using MediaKit/MusicKit on iOS on-device to get an ISRC (International Standard Recording Code) from a MPMediaItem in a reliable way? I know that MusicKit JS has this metadata, but is it hiding somewhere on iOS?
Wil Gieseler
  • 1,893
  • 1
  • 17
  • 18
1
vote
0 answers

Apple Music Api SkiptoNextItemnot working

Trying to skip to the next item in the queue, but when applicationMusicPlayer.skipToNextItem() is called, the place in the queue doesn't change, the current track just starts over. The queue is composed of an array of string item IDs. …
1
vote
0 answers

What resource types are supported by MusicKIt addToLibrary function?

My code for adding songs to user's music library looks like this: let kit = MusicKit.getInstance(); kit.authorize() .then(() => { kit.addToLibrary('1234567', 'SONGS'); }); Do you know what other types, besides SONGS, are supported?…
naXa stands with Ukraine
  • 35,493
  • 19
  • 190
  • 259
1
vote
0 answers

Apple Music (MusicKit) userToken outside iOS

I'm trying to develop an app that can interact with the user music library. The application will be Windows-based (so far). I had no problem with Spotify and other music APIs. However, I'm stuck with Apple Music (MusicKit) API. I was able to create…
1
vote
0 answers

Apple Music API, 'stations' Resource Type Playback

I am trying to play 'stations' resources from Apple Music Catalogue. I retrieve the radio station via the Apple Music API i.e. Search for Catalogue Resources which gives me a station response (StationResponse): { attributes = { artwork = …
1
vote
1 answer

How to play music using Apple Music Kit JS

I'm trying to create a small player using Apple Music Kit JS but I'm having issues when playing the song. This is my current code: Hear for…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/javascript" class="post-tag grid--cell" title="show questions tagged 'javascript'" rel="tag">javascript</a> <a href="../../questions/tagged/apple-music" class="post-tag grid--cell" title="show questions tagged 'apple-music'" rel="tag">apple-music</a> <a href="../../questions/tagged/apple-musickit" class="post-tag grid--cell" title="show questions tagged 'apple-musickit'" rel="tag">apple-musickit</a> <a href="../../questions/tagged/apple-musickit-js" class="post-tag grid--cell" title="show questions tagged 'apple-musickit-js'" rel="tag">apple-musickit-js</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked May 15 '20 at 23:22">asked May 15 '20 at 23:22</time> <a href="../../users/11611341/ethan-lipnik" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/11611341.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Ethan Lipnik" /> </a> <div class="s-user-card--info"> <a href="../../users/11611341/ethan-lipnik" class="s-user-card--link">Ethan Lipnik</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">21</li> <li class="s-award-bling s-award-bling__bronze" title="2 bronze badges">2</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-61053620"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/61053620/mpmusicplayercontroller-systemmusicplayer-nowplayingitem-is-not-change-state-o" class="question-hyperlink">`MPMusicPlayerController.systemMusicPlayer.nowPlayingItem` is not change state only after Music App reopen</a></h3> <div class="excerpt">MPMusicPlayerController.systemMusicPlayer.nowPlayingItem is not change state only after Music App killed and reopen. Specifically, Open Music App and play music. Open created app by me. It's using…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/ios" class="post-tag grid--cell" title="show questions tagged 'ios'" rel="tag">ios</a> <a href="../../questions/tagged/apple-musickit" class="post-tag grid--cell" title="show questions tagged 'apple-musickit'" rel="tag">apple-musickit</a> <a href="../../questions/tagged/ios13.4" class="post-tag grid--cell" title="show questions tagged 'ios13.4'" rel="tag">ios13.4</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 06 '20 at 05:46">asked Apr 06 '20 at 05:46</time> <a href="../../users/13233933/peropero" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/13233933.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="peropero" /> </a> <div class="s-user-card--info"> <a href="../../users/13233933/peropero" class="s-user-card--link">peropero</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">11</li> <li class="s-award-bling s-award-bling__bronze" title="1 bronze badges">1</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-60905222"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/60905222/apple-music-api-get-history-between-date-range" class="question-hyperlink">Apple Music API get history between Date range</a></h3> <div class="excerpt">I would like to get a history of the user's recently played resources. However, I do not want to get the full history but the history between a specific date range. Example: Max has been listening to Apple Music for 5 years now. I would now like to…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/apple-music" class="post-tag grid--cell" title="show questions tagged 'apple-music'" rel="tag">apple-music</a> <a href="../../questions/tagged/apple-musickit" class="post-tag grid--cell" title="show questions tagged 'apple-musickit'" rel="tag">apple-musickit</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 28 '20 at 18:34">asked Mar 28 '20 at 18:34</time> <a href="../../users/10203069/linus-hologram" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/10203069.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="linus_hologram" /> </a> <div class="s-user-card--info"> <a href="../../users/10203069/linus-hologram" class="s-user-card--link">linus_hologram</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,595</li> <li class="s-award-bling s-award-bling__silver" title="13 silver badges">13</li> <li class="s-award-bling s-award-bling__bronze" title="38 bronze badges">38</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-60405362"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/60405362/swift-mpmusicplayercontroller-applicationqueueplayer-skiptonextitem-function-c" class="question-hyperlink">Swift MPMusicPlayerController ApplicationQueuePlayer skipToNextItem() function causes the queue to be cleared</a></h3> <div class="excerpt">I'm working on a music playing app that shows a list of Apple Music songs in a TableView and plays them in a certain order, but am having issues with the MPMusicPlayerController's application queue player. Due to the requirements of the app, I can…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/ios" class="post-tag grid--cell" title="show questions tagged 'ios'" rel="tag">ios</a> <a href="../../questions/tagged/swift" class="post-tag grid--cell" title="show questions tagged 'swift'" rel="tag">swift</a> <a href="../../questions/tagged/mpmusicplayercontroller" class="post-tag grid--cell" title="show questions tagged 'mpmusicplayercontroller'" rel="tag">mpmusicplayercontroller</a> <a href="../../questions/tagged/apple-music" class="post-tag grid--cell" title="show questions tagged 'apple-music'" rel="tag">apple-music</a> <a href="../../questions/tagged/apple-musickit" class="post-tag grid--cell" title="show questions tagged 'apple-musickit'" rel="tag">apple-musickit</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 26 '20 at 01:01">asked Feb 26 '20 at 01:01</time> <a href="../../users/12740208/alex-mortimer" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/12740208.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Alex Mortimer" /> </a> <div class="s-user-card--info"> <a href="../../users/12740208/alex-mortimer" class="s-user-card--link">Alex Mortimer</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">13</li> <li class="s-award-bling s-award-bling__bronze" title="3 bronze badges">3</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-60132147"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/60132147/begingeneratingplaybacknotifications-is-not-called" class="question-hyperlink">beginGeneratingPlaybackNotifications is not called</a></h3> <div class="excerpt">beginGeneratingPlaybackNotifications doesn't seem to be being called in my app. I can fetch the storeIds and the music is playing (and I can skip forwards and backwards) but the notification never seems to be called. Any advice or is there something…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/swift" class="post-tag grid--cell" title="show questions tagged 'swift'" rel="tag">swift</a> <a href="../../questions/tagged/apple-music" class="post-tag grid--cell" title="show questions tagged 'apple-music'" rel="tag">apple-music</a> <a href="../../questions/tagged/apple-musickit" class="post-tag grid--cell" title="show questions tagged 'apple-musickit'" rel="tag">apple-musickit</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 08 '20 at 23:19">asked Feb 08 '20 at 23:19</time> <a href="../../users/12865204/renovator" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/12865204.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="renovator" /> </a> <div class="s-user-card--info"> <a href="../../users/12865204/renovator" class="s-user-card--link">renovator</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">59</li> <li class="s-award-bling s-award-bling__bronze" title="2 bronze badges">2</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-59710909"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/59710909/how-can-i-access-music-files-in-ios" class="question-hyperlink">How can I access music files in iOS?</a></h3> <div class="excerpt">I have a question about accessing files in iOS programming. I want to access music files in iOS, and I searched about these topics but I didn't find proper documents. Could you recommend proper materials about accessing music files? Thanks for…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/ios" class="post-tag grid--cell" title="show questions tagged 'ios'" rel="tag">ios</a> <a href="../../questions/tagged/filesystems" class="post-tag grid--cell" title="show questions tagged 'filesystems'" rel="tag">filesystems</a> <a href="../../questions/tagged/apple-music" class="post-tag grid--cell" title="show questions tagged 'apple-music'" rel="tag">apple-music</a> <a href="../../questions/tagged/apple-musickit" class="post-tag grid--cell" title="show questions tagged 'apple-musickit'" rel="tag">apple-musickit</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jan 13 '20 at 05:17">asked Jan 13 '20 at 05:17</time> <a href="../../users/12214321/yun" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/12214321.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Yun" /> </a> <div class="s-user-card--info"> <a href="../../users/12214321/yun" class="s-user-card--link">Yun</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">75</li> <li class="s-award-bling s-award-bling__bronze" title="6 bronze badges">6</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-59618091"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/59618091/android-apple-musickit-decoding-sample-error-1inputformat" class="question-hyperlink">Android Apple Musickit Decoding sample error -1inputFormat</a></h3> <div class="excerpt">I integrated Apple Musickit into an Android app. Randomly when I press play / pause / play I will get: onPlaybackError() = com.apple.android.music.playback.model.a: Decoding sample error. ERROR decoding sample: -1inputFormat: Format(1, null,…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/java" class="post-tag grid--cell" title="show questions tagged 'java'" rel="tag">java</a> <a href="../../questions/tagged/android" class="post-tag grid--cell" title="show questions tagged 'android'" rel="tag">android</a> <a href="../../questions/tagged/kotlin" class="post-tag grid--cell" title="show questions tagged 'kotlin'" rel="tag">kotlin</a> <a href="../../questions/tagged/apple-musickit" class="post-tag grid--cell" title="show questions tagged 'apple-musickit'" rel="tag">apple-musickit</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jan 06 '20 at 19:49">asked Jan 06 '20 at 19:49</time> <a href="../../users/6327554/marc-alexander" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/6327554.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Marc Alexander" /> </a> <div class="s-user-card--info"> <a href="../../users/6327554/marc-alexander" class="s-user-card--link">Marc Alexander</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">761</li> <li class="s-award-bling s-award-bling__silver" title="11 silver badges">11</li> <li class="s-award-bling s-award-bling__bronze" title="24 bronze badges">24</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/apple-musickit_page=4" rel="prev" title="Go to page 4">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/apple-musickit_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/apple-musickit_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/apple-musickit_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/apple-musickit_page=11" rel="" title="Go to page 11">11</a> <a class="s-pagination--item" href="../../questions/tagged/apple-musickit_page=12" rel="" title="Go to page 12">12</a> <a class="s-pagination--item" href="../../questions/tagged/apple-musickit_page=6" rel="next" title="Go to page 6"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>