apple-music

Does the Apple Music User Token change for every authentication?

别说谁变了你拦得住时间么 提交于 2021-02-07 19:56:45
问题 I'm trying to identify a user by storing the Apple Music User Token on a database. Is this token the same for an Apple Music user over multiple authentications? I seem to have run into a hiccup here - over the course of the development (me being the only developer), I noticed four different user tokens registered on the database, despite only using one login. I want to double check if the User Token is in fact not the same over multiple authentications before I move to a different method of

Does the Apple Music User Token change for every authentication?

本小妞迷上赌 提交于 2021-02-07 19:53:12
问题 I'm trying to identify a user by storing the Apple Music User Token on a database. Is this token the same for an Apple Music user over multiple authentications? I seem to have run into a hiccup here - over the course of the development (me being the only developer), I noticed four different user tokens registered on the database, despite only using one login. I want to double check if the User Token is in fact not the same over multiple authentications before I move to a different method of

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

做~自己de王妃 提交于 2020-06-26 04:09:15
问题 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 wants to play the same song, sending 544390857 to the systemMusicPlayer results in the song not being recognised (and nothing played). The GB storefront equivalent ID for that song is 674900368 . I have two questions: Is there an easy way of me being

MusicKitJS: Can't play songs from user's library

非 Y 不嫁゛ 提交于 2020-01-03 06:06:11
问题 So I'm experimenting with Apple's MusicKit JS (https://developer.apple.com/documentation/musickitjs) that was released last week. I'm having trouble playing songs fetched from the library endpoints and from what I can tell it's because of the id format. If I use their doc examples and set the queue to an album with an id like 1025210938 , songs play fine. However when getting a song from a user's iCloud library (ie. /v1/me/library/albums or in musickitjs case music.api.library.albums() ) I

How to access Apple Music album art in iTunes via Apple Script

橙三吉。 提交于 2019-12-21 21:34:56
问题 I'm trying to create an application that sets the desktop background to the album artwork of the current song playing in iTunes, but have come across an issue where my script can't read the album art of an Apple Music song unless it has been added to the user's music collection or playlist. Currently I am using this code to extract the album art. -- get the raw bytes of the artwork into a var tell application "iTunes" to tell artwork 1 of current track set srcBytes to raw data -- figure out

iOS 9.3.2 Breaks MPMusicPlayerController

十年热恋 提交于 2019-12-20 10:53:58
问题 I'm trying to integrate Apple Music to my app, I managed to get it working flawlessly until this morning. After updating to iOS 9.3.2 nothing is the same: The permission system works the same (SKCloudServiceController) to retrieve the AuthorizationStatus and Capability of the user. However, the MPMusicPlayerController do not behave the same using the new iOS version, let me explain : On iOS 9.3.1, if I call the playerController.play() method after setting my tracks in playerController

How to find Explicit Songs on Apple Music User Playlists iOS?

心不动则不痛 提交于 2019-12-13 20:09:06
问题 I am fetching all Apple Music Playlists and Track lists into my App using AppleMusicAPI (Refers https://developer.apple.com/documentation/applemusicapi). Also In my App's Setting screen I have added a UISwitch to allow Explicit contents of Apple Music . I can able to get Explicit songs in below Search API and Top Tracks API using attributes.contentRating JSON key. Top Charts API: https://api.music.apple.com/v1/catalog/us/charts?limit=20&offset=0&types=songs Search API: https://api.music.apple

How to get a Catalog Playlist id for Apple Music API?

核能气质少年 提交于 2019-12-13 08:44:46
问题 I am currently developing a 3rd-party client for Apple Music on iOS devices, but got stuck when trying to fetch artworks for catalog playlists. According to Apple Music API, "Get a Catalog Playlist", we may fetch a playlist by using its identifier as a path parameter, and the URL of the artwork is contained in the response : https://developer.apple.com/documentation/applemusicapi/get_a_catalog_playlist However, the playlist identifier is nowhere to be found, does anyone know how exactly can I

Error getting a userToken for Apple Music SDK with JWT

故事扮演 提交于 2019-12-12 12:17:20
问题 I'm trying unsuccessfully to get a userToken for Apple Music SDK using the developerToken from JWT. I've used pelauimagineering/apple-music-token-generator and I could get a valid and static userToken. But apple recommend to make dynamic, so I'm trying to use JWT again. Someone can tell me please what's wrong with my code? Thank you func fetchDeveloperToken() -> String? { func fetchDeveloperToken() -> String? { let iat = Date().timeIntervalSince1970 let days = TimeInterval(24*60*60*120) //120

Error using SKCloudServiceController API to check Apple Music capabilities

本小妞迷上赌 提交于 2019-12-11 06:29:55
问题 I am using this code to try to check a devices Apple Music capabilities: SKCloudServiceController *controller = [SKCloudServiceController new]; [controller requestCapabilitiesWithCompletionHandler:^(SKCloudServiceCapability capabilities, NSError * _Nullable error) { if (error != nil) { NSLog(@"Error getting SKCloudServiceController capabilities: %@", error); } else if (capabilities & SKCloudServiceCapabilityMusicCatalogPlayback) { NSLog(@"YES SUBSCRIBED!!!!"); } else { NSLog(@"NOT SUBSCRIBED!