- Home /
How to allow the user to choose a song from his/her own library to play in game?
Hey, was just wondering, if I wanted to allow the player to choose a song from his/her own music library whether iOS or Android (I understand that the process would vary between the two), to play in game. How would I go about it?
Any answers, will be much appreciated.
Thank you.
Cheers!! :)
Answer by supernat · Mar 09, 2014 at 03:03 AM
You could just purchase a plugin, maybe check out Prime 31.
Otherwise, you will need to create the objective C native code to do this, and add a set of interface methods to drive that code from you C# scripts. See https://docs.unity3d.com/Documentation/Manual/PluginsForIOS.html There is a similar unity support page for Android.
Answer by hunterleaman · Feb 22, 2015 at 04:06 PM
supernat is correct. I made a simple music visualizer for iPad with Unity and needed the functionality you're talking about but couldn't find any plugins that do it so I had to make it. I published the plugin iOS Music Library Access. It allows iOS users to access their music library and play any song, even audio books, and supports playlists, but doesn't work with android. Hope this helps
Your answer
Follow this Question
Related Questions
GUI refresh time on platforms slower than Unity Editor 1 Answer
Error building Player: Exception: android (invokation failed) 1 Answer
how to convert Input.mousePosition into iphone/android accelerometer? 1 Answer
Dynamic Backgroundmusic 1 Answer
GUI Styles for iPhone/Android - font/button sizing? 3 Answers