Playing user music on IOS

So I’ve been struggling with this for a while now.

As it stands I’ve written an app which uses System.IO to extract the pathnames of all .mp3 files and then uses those path names to load the files in Unity where I can then use the audio data to affect gameplay (it’s used in a beat detection engine which causes things to happen on beat)

The game works perfectly on Android as file browser access and such is easy.

However on IOS it’s much more difficult due to their sandboxed approach. I have read up on plugins such as Prime31 and others but they all give access to the media player framework which then plays the song as opposed to loading it in using WWW.

Is it possible to load IOS music files into Unity using WWW?

It’s definitely possible - my plugin iOS Music has this exact functionality. It creates a new audio file from the song selection, saves it to the persistent data path, then loads it via an AudioSource.

Out of curiosity, which beat detection engine are you using? I am also working on a similar plugin in my spare time…