Questions tagged [apple-music]

Apple Music is a music streaming service created by Apple Inc.

Apple Music is a music streaming service created by Apple Inc. Users can listen on-demand to available tracks or curated playlists. The service also includes Internet radio stations.

Use this tag for questions regarding Apple Music and its APIs. For general Cocoa or Cocoa Touch API questions, use the and tags respectively. For language questions, use the or tags.

196 questions
1
vote
1 answer

How can I access music files in iOS?

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…
Yun
  • 75
  • 6
1
vote
0 answers

How to programmatically update song lyrics in apple music?

I want to add tablature along with words to the lyrics in my songs stored in apple music, on mac and icloud. How can I programmatically update song lyrics?
rerb
  • 65
  • 7
1
vote
0 answers

MPMusicPlayerApplicationController stops playing in background after exactly 30 songs

I have an app which plays songs from Apple Music using MPMusicPlayerController.applicationQueuePlayer. I am constantly connecting to my backend and updating the song queue using player.prepend(MPMusicPlayerStoreQueueDescriptor(storeIDs: ids)). In…
frangulyan
  • 3,580
  • 4
  • 36
  • 64
1
vote
0 answers

MPMediaPicker not showing all songs

Usage I am using a media picker like this musicPicker = [[MPMediaPickerController alloc] initWithMediaTypes:MPMediaTypeAnyAudio]; musicPicker.showsCloudItems = false; musicPicker.showsItemsWithProtectedAssets =…
Martin Mlostek
  • 2,755
  • 1
  • 28
  • 57
1
vote
1 answer

How to upgrade from iTunesLibrary in Catalina

I have an app that that uses the iTunes XML file to access the local library of songs. With the upgrade to Catalina the only way to do this is to manually generate the XML file, which is something I'd rather not ask of my users. I did think of…
Nelroy
  • 41
  • 4
1
vote
0 answers

Upload a track to Apple Music (API)

Is there a way to upload the track from my computer to Apple Music? Apple provided an API, but I only found the following request from it: POST https://api.music.apple.com/v1/me/library/playlists/{id}/tracks As I understand, this request can add…
1
vote
0 answers

How many chart positions are available in the Apple Music API?

Example call: https://api.music.apple.com/v1/catalog/us/charts?types=songs&genre=34 The help page (https://developer.apple.com/documentation/applemusicapi/get_catalog_charts) says the results are paginated and can retrieve 50 positions at a time.…
1
vote
1 answer

Problem with syncing Song Info from iTunes to Android phone

Most of my songs have been edited in Song Info (right-click in iTunes on a song/album/artist and select Song Info). Here I changed the start and stop time and whether I wanted to skip the song when shuffling. The problem is that these changes don't…
Magnus
  • 83
  • 1
  • 7
1
vote
0 answers

Fetching lyrics using MediaPlayer library fails in Swift4.0 iOS 12

For past few hours, I researched how to fetch lyrics from songs in my Apple Music library reading other posts here, but in my environment it was not successful. And then I thought that maybe this is because of Apple Music Membership. I assumed that…
Ryohei
  • 713
  • 2
  • 9
  • 20
1
vote
0 answers

How to access user music library on iOS 13

Since iOS 9.3 we can use the API SKCloudServiceController.requestAuthorization to ask permission to access the user's music library. The documentation says that the only change to this API on Xcode 11 was the support for tvOS, which should not…
Marcos Tanaka
  • 3,112
  • 3
  • 25
  • 41
1
vote
1 answer

How to play a song using MusicKit SDK for Android

I'm trying to play a song using MusicKit SDK for Android, but I can't figure out how to play a certain song by its ID. For instance I have this apple music song Id: "1440783625" (Smells Like Teen Spirit by Nirvana) and I want to play this song using…
123
  • 127
  • 3
  • 18
1
vote
1 answer

How to Create a Apple Music User Token in react native

I'm trying to access my personal Apple Music library. When I followed the Apple Docs they said we need to generate Music User Token and pass the music user token in the header. How can I do that in the react-native. Not sure where to start.
m9m9m
  • 1,655
  • 3
  • 21
  • 41
1
vote
0 answers

Error using SKCloudServiceController API to check Apple Music capabilities

I am using this code to try to check a devices Apple Music capabilities: SKCloudServiceController *controller = [SKCloudServiceController new]; [controller requestCapabilitiesWithCompletionHandler:^(SKCloudServiceCapability capabilities, NSError…
KiloOne
  • 312
  • 1
  • 6
  • 20
1
vote
1 answer

Getting a rating for a song with Apple Music API

I am trying to get the rating for a song via the Apple Music API, as it describes here. Hence, the URL I am using is: https://api.music.apple.com/v1/me/ratings/songs/493341471 493341471 is the playbackStoreID (of the MPMediaItem) of the song 'Born…
jjjjjjjj
  • 4,203
  • 11
  • 53
  • 72
1
vote
1 answer

Album artwork from track MPMediaItem

I'm using Apple Music API's recent played endpoint which returns a list of recently played media assets. I'm then using one of them and play it on MPMusicPlayerController. { "id": "1437591818", "type": "albums", "href":…
jcardenete
  • 1,646
  • 3
  • 13
  • 16