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

is it possible to play AppleMusics inside my app? If yes then how can i play this?

I'm beginner to iOS development. I want to play AppleMusic inside my app. please let me know is it possible or not? If it is possible then please suggest me how can i play this. I found this Link but i don't know wether it play music with iPhone…
Kuldeep
  • 146
  • 2
  • 12
0
votes
0 answers

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

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…
Anand Gautam
  • 2,541
  • 3
  • 34
  • 70
0
votes
1 answer

Fix "Cannot ready property 'container' of null" From musickit.js When Running Angular App on Server

I'm writing an application that uses Angular and MusicKit to allow users to listen to the same music at the same time. I'm encountering the following error when attempting to run the application (with ng serve --host x.x.x.x) against anything other…
0
votes
1 answer

Control Apple Music/iTunes from another application running on the same PC

So I have to develop a full screen application in C#, and I was wondering if there's a way to control iTunes/Apple Music, that is running on the same PC (in the background). I would like something like play/pause, next, previous, MAAAYBE even…
Laureant
  • 979
  • 3
  • 18
  • 47
0
votes
1 answer

Apple's javascript MusicKit API authorize in electron app

I wanted to make an electron app that uses Apple's MusicKitjs API. However, the authorize function opens another window. This causes problems with electron since each window is sandboxed. The authentication does not seem to be OAuth which rules out…
0
votes
1 answer

Musickit JS - Add video to playlist

In the link below, you can add tracks to a library playlist https://developer.apple.com/documentation/applemusicapi/add_tracks_to_library_playlist .. Is there a musickit JS API endpoint to add a music video to a playlist?
aevansme
  • 105
  • 7
0
votes
1 answer

Swift - open the music app and play specific album

I'm having problems with finding out information or a documentation on how to open the music app with a specific album and playing it. The closest I found right now is let url = URL(string: "music://") UIApplication.shared.open(url!,…
ab1428x
  • 794
  • 2
  • 8
  • 20
0
votes
0 answers

AppleMusic Api Search Similar Artists

I can't find out how to create a search request by the Apple Music Api to get a similar artists. For example, I have the Artist Aerosmith and want to search similar artists with the same genres. I'm looking here…
Rustam Khisamov
  • 151
  • 1
  • 4
  • 8
0
votes
2 answers

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

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…
rycirese
  • 179
  • 1
  • 14
0
votes
1 answer

Apple Music Song Playback Not Working

Trying to play song using MPMusicPlayerController using the following code let musicPlayerController = MPMusicPlayerController.systemMusicPlayer func beginPlayback(itemID: String) { let descripter = MPMusicPlayerStoreQueueDescriptor(storeIDs:…
NickDK
  • 999
  • 10
  • 24
0
votes
0 answers

MusicKit Login to Multiple Accounts

I am trying to create an iOS app in swift that can retrieve information from the Apple Music API about multiple users (different accounts). For example: User 1 logs in User 2 logs in Make API requests to gather information about user 1 and user…
jeremyms
  • 319
  • 2
  • 11
0
votes
1 answer

Unable to create Apple Music JWT token

I am trying to generate Apple Music JWT token. I have valid keyId, teamId and .p8 file + I have installed latest version of pyjwt & cryptography. When I am trying to execute python music_token.py I am receiving following error. (Downloaded…
Vipul
  • 27,808
  • 7
  • 60
  • 75
0
votes
0 answers

How can I make Apple Music collection Accessible to other users in my app?

I want to make an iOS app that can play music from Apple Music. I tried this using Swift 4, and the result is shown in this video: MyApp_that_can_access_AppleMusic_VideoLink As the video shown, I can access my Apple Music library (using my Apple…
Luthfi Rahman
  • 424
  • 6
  • 17
0
votes
1 answer

Not getting playlist name from Apple Music

I want to get Playlist Name, but it gives value of Mpconcreteitem. let myQuery2 : MPMediaQuery = MPMediaQuery.playlists() let playlist = myQuery2.collections print(playlist!) for album in playlist!{ print("---------------") print("playlist…
0
votes
0 answers

MPMediaPlaylist - delete a song

Is it possible to delete a song from a MPMediaPlaylist playlist? I have the ability to get all the songs in a list: NSArray *songs = [playlist items]; Can I loop through this with a given productID and delete the item?
scgough
  • 5,099
  • 3
  • 30
  • 48
1 2 3
11
12