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
4
votes
1 answer

Apple Music API - Create a Playlist

I have been exploring the Apple Music API to see what kind of functionality I can expect to be able to use in an iOS app. I have created a little test app that gains permission from the user and outputs the playlists I have (and songs) to…
scgough
  • 5,099
  • 3
  • 30
  • 48
3
votes
1 answer

SwiftUI - How does Apple Music create their background gradient?

I was taking a look at the background that Apple Music uses when displaying the currently playing song, like these: I really like the way that these backgrounds echo the color of the album cover, but I'm not entirely sure how I could implement…
Nicolas Gimelli
  • 695
  • 7
  • 19
3
votes
1 answer

MPMusicPlayerController fails to play Apple Music songs

I am using an instance of MPMusicPlayerController.systemMusicPlayer to enqueue an array of store IDs. This has worked for months now. Earlier today I updated to iOS 14.3, and the player is now failing to play songs. The code below is the minimal…
Harman
  • 346
  • 2
  • 6
3
votes
0 answers

MPMediaItemArtwork bounds.size is zero while cover is available in iOS Music

I am trying to get the artwork for the now playing song in the iOS Music app. The artwork is displayed correctly in the iOS Music app however calling MPMediaItemArtwork.bounds.size returns (0,0) meaning MPMediaItemArtwork.image(at: CGSize) fails to…
Eric
  • 41
  • 4
3
votes
1 answer

How to open Apple Music (iTunes) links in new Music app (MacOS Catalina)

I have a web app that uses the MusicKitJS together with Apple Music's API to display information about music releases. The behaviour since MacOS Catalina has changed due to the introduction of the Music app and removal of iTunes. Links like this…
zerohedge
  • 3,185
  • 4
  • 28
  • 63
3
votes
0 answers

MPMediaPickerController with MPMediaTypeMusic "for you" or "browse" is empty

I am using the MPMediaPickerController to playback my own files (locally or purchased in the cloud). This is the code i use musicPickerView = [[UIView alloc] initWithFrame:fullScreenRect]; musicPickerView.alpha = 0.0f; musicPicker =…
3
votes
1 answer

MPMusicPlayerController fails to play from Apple Music

I'm trying to play songs from Apple Music and it is failing with the following logs: 2019-09-26 00:15:57.790999+0200 [1886:463973] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=9 "(null)"" 2019-09-26 00:15:57.791129+0200…
frangulyan
  • 3,580
  • 4
  • 36
  • 64
3
votes
0 answers

Apple music not playing some songs in ios

I am working with Apple music and using MPMusicPlayerController.systemMusicPlayer for playing music with the unique song id(870697325). some song working fine but some does not work. it just displays the nil and stops. I have printed log please find…
Ilesh P
  • 3,940
  • 1
  • 24
  • 49
3
votes
2 answers

How can I access a user's music library without using MusicKit?

It looks to me like MusicKit is only available on beta iOS versions. I'm pretty sure, however, I've seen a way to do it before without using MusicKit. Is this possible? I've been searching around for a while now and I've only found things about…
Zac
  • 813
  • 10
  • 22
3
votes
3 answers

Apple Music Kit - Play song with ID from user in storefront A for user with storefront B

If I am based in the US and I want to play the song "Sun" by Two Door Cinema Club I would use the ID 544390857. I can do this in (for example) the systemMusicPlayer and the song begins to play in Apple Music. If my friend is based in the UK and…
scgough
  • 5,099
  • 3
  • 30
  • 48
3
votes
2 answers

Swift 3.1 Issue with SKCloudServiceCapability

I'm trying to call this function to check Apple Music subscription status. I have an active subscription and listen to music on my iPhone. But when I'm running test app on it, capability value is not valid. It should be…
DJ-Glock
  • 1,277
  • 2
  • 12
  • 39
3
votes
0 answers

Songs playing randomly despite setQueueWithStoreIDs order

I am trying to play a list of songs from apple music using their track_id. playlist is of type [String] and the app plays all songs in the queue. It always starts with the first song as well, but after that everything is random each time. It acts…
David Schumann
  • 13,380
  • 9
  • 75
  • 96
3
votes
2 answers

Play Apple Music through 3rd party app on tvOS?

As we can play apple music songs by third party applications on iOS. As we know Apple given Apple Music Support on tvOS as well. So is it possible to play Apple Music songs from my tvOS application like iOS On Apple Documentation here it is clearly…
Anupam Mishra
  • 3,408
  • 5
  • 35
  • 63
3
votes
1 answer

MPMusicPlayerController play not working with Apple Music

I am using the new Apple Music API with MPMusicPlayerController but play method doesn't work in the first time called, but after the second or third time. My code is the following: MPMusicPlayerController *appleMusicPlayer = /*access instantiated…
ozzotto
  • 1,146
  • 3
  • 13
  • 30
2
votes
0 answers

MPMusicPlayerController.applicationQueuePlayer not updating start and end times using MPMusicPlayerMediaItemQueueDescriptor

I'm experiencing an issue with the MPMusicPlayerController.applicationQueuePlayer when setting the queue using an MPMusicPlayerMediaItemQueueDescriptor with specific start and end times. Instead of updating to the new start and end times, the…
1 2
3
13 14