What is the definition of the "Apple Music API"? - ios

I'm trying to understand the App Store Review Guidelines around the Apple Music API. However, I can't seem to find a definition for the Apple Music API, and in particular how far it extends (i.e. how much of the entire API does it encompass?).
On this iTune Affiliate Resource page it is suggested that the Apple Music API is a combination of:
SKCloudServiceController
MPMediaLibrary
MPMusicPlayerController
Is this truly the definition of the Apple Music API? And in which case, if you use any of the frameworks listed above are you technically using the Apple Music API?
To put some context, I'm planning to build a music player that utilises a device's local library only. Is there a way of building such an iOS music player app and avoid using the Apple Music API?

The point of the language you quote in your comment is merely that you must not try to do what Apple is already doing, i.e. make money by getting the user to subscribe to or access Apple Music (the online streaming service) through you rather than Apple. You aren't going to do that, so don't worry about it.
EDIT I'll give you an example of what Apple is saying you cannot do. Let's say you have an app that plays music from the user's library, and that you differentiate: you say, to play your music is free, but play Apple Music songs will cost you an extra dollar of in-app payment. That would be a violation of the rules.

Related

How Apple App gets YouTube authorization

I have an playing video app in Apple. but Apple replies are not authorized. The reply is:
5.2.3 - Facilitate illegal file sharing or include the ability to save, convert, or download media from third party sources without explicit authorization from those sources.
The app has passed Apple audits before adding YouTube.
According to the App Store Review Guidelines, streaming of videos may also violate their terms of use, so it isn't allowed. So unfortunately it sounds like you will either need to get YouTube's permission, or just remove YouTube streaming from your app.

Can third-party devs control HomePod remotely?

In iOS, you can remotely-control a HomePod via Control Center, the Music app, and Apple’s Podcasts app.
If a third-party developer wanted to send an iTunes podcast episode or an Apple Music item to a HomePod, could they build similar in-app controls like Music or Podcasts?
(Yes, I know that I can use AirPlay to stream audio to a HomePod - but that’s not quite the same as the UI shown below...)
I expect that there’s not a way for a third-party app to implement such a control - but I’d love to know if it is!
AFAIK there's no public API for this. I think it's currently implemented by the private framework MediaRemote.framework.

iOS - play a song from iTunes which the user has not purchased?

I have not started coding my app but I have an idea and want to see if this part of it is possible. Would it be ok if, given a track ID, I played the song (through MediaPlayer) in the app, even if the user had not bought the song and do not have it in their library?
If not, what would be the best way to play music that anyone (or most people, at least) can listen to as they use my app?
You can play music that:
is in the user's library
or, is embedded in your app
or, is available online where your app can readily access it (assuming reachability etc.)

Access Apple Music Api outside iOS

I'm looking at creating a playlist creation tool for Apple Music.
Apple just release an api for iOS that allows this functionality. Does anyone know if it is possible to use this api from NodeJS or some other service side technology?
Music Api Doucmentation
https://developer.apple.com/library/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS9_3.html
Apple Music Api Announcements
https://affiliate.itunes.apple.com/resources/blog/new-apple-music-api/
No that's not possible with the current API. "An Apple Music API is now available that allows iOS Apps to directly control Apple Music playback for Members among other features." The API allows iOS to interact with the music app locally on the user's device. Not remotely from a server.

How does the default iOS alarm clock play a song from the music library?

It seems like most people insist that there is no way to play anything but the maximum 30 second audio file associated with a local notification, if your app is not open. Does anyone know then, how the default alarm clock is able to play any song from the music library?
Being an app written by Apple that comes bundled with the OS, it's not subjected to the same restrictions third-party apps are limited by. It's very likely Apple is using a private API.
Apple's own official applications are not bound by the same restrictions that Apple has imposed on 3rd party applications such as your own. Therefore, it is highly likely that their own apps are exempted from the rule of max. 30 seconds sound.
Apple might have been using their own private API for their applications.

Resources