- Home /
 
Why local WWW audio stream not working on iOS?
this works for android but on an iphone S5 the audio file is not been played. thanks in advance!
 url = "file://" + Application.persistentDataPath + "/audio-"+ index +".mp3";
 wwwTemp= new WWW (url);
 yield wwwTemp;
 audio.clip=wwwTemp.audioClip;
 audio.Play();
 
              
               Comment
              
 
               
              Answer by Chopi · Jun 24, 2015 at 10:54 AM
You need to use like this "file://" + Application.dataPath + "/Raw/" + "FOLDER/YOUR_FILE.MP3";
Where "/Raw/AssetBundles/" will be your StreamingAssets folder inside the Assets
Android and iOS doesn't work in the same way when using the StreamingFolder
Your answer
 
             Follow this Question
Related Questions
How do i stream audio? 0 Answers
Trying to load and play saved .wav from /Documents iOS 2 Answers
What effect does "Stream from disc" have on an audio file for an iOS or Android App? 1 Answer
Endless Audio streaming (Radio)?! 3 Answers
Speed of WWW 1 Answer