- Home /
Can Unity Play Audio Files from an External Source
Hi,
I was wondering is unity capable of playing an audio file from an external source, as in bring in the audio file from a database or an xml file ? or even display images on the GUI from an external source or a movie? I haven't seen much information out there on this!
Any help would be greatly appreciated.
Answer by StephanK · Mar 08, 2011 at 02:08 PM
Yes. Look at the WWW class for this. You can use it to load an audioclip over the net or from local hard disk and play it back. (even streaming) However this only works for .ogg files not for mp3, which I find to be really annoying. (I know it's probably a license/business problem, but as a developer that's still annoying...)
Your answer
Follow this Question
Related Questions
3d Sound not working? 1 Answer
How to record audio in chunks and send through websocket? 0 Answers
Reading Wav file from a folder 0 Answers
Play and Pause button 0 Answers
Trying to monitor the incoming audio from external usb interface 0 Answers