Easily add music playlists to your Unity iOS project from the player's own iOS Music library.
What's New in version 2.1:
- Apple Music integration. Stream nearly every song recorded in human history. NOTE: This is provided as a programmatic interface which identifies music content on the Apple Music service by the regional store’s product identifier. This is not a full wrapper for Apple’s MusicKit framework, but if you’re interested in building a more sophisticated implementation in your project, this integration provides a good technical foundation to achieve it. Please contact me with questions about a custom implementation!
Features introduced in version 2.0:
- Playlists will auto-play the next song in the playlist when the current song finishes. Playlists will loop back to the start of the playlist after the last song in the playlist has finished.
- Navigate through the playlist with newly added "Next" and "Previous" plugin functions exposed to script control.
- Easily toggle between replacing or appending to the current playlist from your game scripts.
- Audio Source mode implements "lazy loading", meaning songs are extracted from the device's media library only when they are cued to play, and replaces the previously extracted file in the app's persistent data path automatically.
- Example scene's UI updated to use Canvas elements throughout. Song artwork is converted to a Sprite and loaded into a UI Image automatically.
Recent updates (version 1.2):
- Metadata extraction (BPM, Song duration, Lyrics, Artwork, Artist, Album, Song Title, etc.)
----------
Full source code provided with the asset.
----------
May 14, 2017
A note on the various ways in which music can appear in a device's library, and the iOS Music asset's capabilities with each method:
1) Transferring music from an iTunes Library to an iOS device: The iOS Music asset supports playback in both native and Audio Source modes of all non-protected (DRM) music assets found in the iOS Music Library which have been added from an iTunes Library.
2) iCloud Music Library: The iOS Music asset supports playback in both native and Audio Source modes of music assets added to the device through iCloud Music Library. The music must be added to a user's iCloud Music Library through iTunes, then the user must update their iCloud Music Library with the new content by choosing File > Library > Update iCloud Music Library in iTunes. Finally, the user must download this new content on their device by navigating to it in the iOS Music app and tapping the "Download" icon.
3) Apple Music: The iOS Music asset does NOT currently support any playback of "downloaded" music from the Apple Music service. By default, the asset filters out these items from appearing in the picker interface when making a song selection through the plugin.
It is important that you understand the various ways in which music can be added to an iOS Music Library, and the capabilities associated with each. If you have any questions about specific capabilities that have not been explained in the asset description, PLEASE CONTACT ME at the publisher email provided on the asset page. I am happy to answer any questions you may have!