How to stream iTunes song preview in my game?

Hey! In my game, I want to be able to stream a song preview from iTunes, and show the player a “Download on iTunes” link to buy the full song. But as far as I can tell, iTunes previews are in m4a format and Unity can’t stream m4a files.

Has anybody figured out a way to do this?

(I’ve been trying to use WWW.GetAudioClip… but there’s no m4a or AAC audio type)

Thanks!

You will need to display the internet page on the unity site, seems as iTunes have malware that blocks us from getting in from external inputs. That is why iTuned also uses m4a as it cannot be decoded or be played unless inside iTunes, unless it is online.