2020. 5. 22. 04:45ㆍ아이폰 개발
아이폰앱이 Apple Music API와 연동을 구현 하려면 애플 개발자 프로그램을 구입해야 하고 물론 Apple Music도 구독해야 한다.
다음은 A부터 Z까지 구현하는 방법에 대해 정리된 문서이다. 좀더 이해가 쉽게 작성했으면 하는 아쉬움은 있지만 기본 가이드라고 할 수 있다.
https://crunchybagel.com/integrating-apple-music-into-your-ios-app/
Integrating Apple Music Into Your iOS App
We recently released a major update to Streaks Workout, with one of the new features automatic playback from Apple Music. While the actual playback of songs from Apple Music is somewhat straightforward, the overall integration process is a little more comp
crunchybagel.com
특이하게 Apple Music API Token은 수동으로 생성을 해야한다. 뭔가 심오한 뜻이 있는 것인지 모르겠지만 Token 유효 기간이 지날때마다 반복해야하는 작업이다.
https://medium.com/@leemartin/creating-an-apple-music-api-token-e0e5067e4281
Creating an Apple Music API Token
for MusicKit JS
medium.com
MusicKit 식별자 및 개인키 생성 방법
https://help.apple.com/developer-account/#/devce5522674
https://help.apple.com/developer-account/#/devce5522674
To see this page, you must enable JavaScript. Pour afficher cette page, vous devez activer JavaScript. Zur Anzeige dieser Seite müssen Sie JavaScript aktivieren. このページを表示するには、JavaScript を有効にする必要があります。
help.apple.com
MusicKit 관련 레퍼런스
https://medium.com/combo-fm/navigating-the-apple-music-ios-api-e9dd2c3ea65a
Playing My Chemical Romance using the Apple Music API
Last week, we released the very first version of our app called Combo.fm. It’s a neat little music discovery tool (you should probably go…
medium.com
모든 노래를 가져오는 API
https://developer.apple.com/documentation/applemusicapi/get_all_library_songs
Get All Library Songs - Apple Music API | Apple Developer Documentation
{ "data": [ { "attributes": { "albumName": "War (Deluxe Edition) [Remastered]", "artistName": "U2", "artwork": { "height": 1200, "url": "https://example.mzstatic.com/image/thumb/Features/2e/72/92/dj.wuyxwvik.jpg/{w}x{h}bb.jpg", "width": 1200 }, "name": "\"
developer.apple.com
MusicKit으로 앱을 만드는 예제인데, 아직은 UI 부분만 완성된 상태이다. 뒤쪽까지 마무리되면 좋은 레퍼런스가 될 듯.
https://www.appcoda.com/musickit-music-player-swiftui/
Introduction to MusicKit: Building a Music Player in SwiftUI
This is a two part tutorial series of MusicKit. You will learn how to build a Music Player app using SwiftUI and connect to Apple Music using MusicKit.
www.appcoda.com
nowPlayingItem - MPMusicPlayerController | Apple Developer Documentation
Instance Property nowPlayingItem The currently-playing media item, or the media item, within a queue, that you have designated to begin playback with. Declaration@property(nonatomic, copy) MPMediaItem *nowPlayingItem; DiscussionTo specify that playback sho
developer.apple.com