- Home /
Question by
marchall_box · Feb 09, 2018 at 08:10 PM ·
audioclipstreamingstreamingassets
Where does streamed audio clip stored and removed?
Hi,
I am using audioclip using streaming for iOS and Android app dev. Once its streamed and played on my app, how long it will be stored there?
www = new WWW(url);
while (www.progress < 0.01)
{
Debug.Log(www.progress);
yield return new WaitForSeconds(.1f);
}
// yield return null;
if (!string.IsNullOrEmpty(www.error))
{
Debug.Log(www.error);
}
else
{
clipa = WWWAudioExtensions.GetAudioClip(www, false, true, AudioType.MPEG);
if (clipa.isReadyToPlay)
{
GetComponent<AudioSource>().clip = clipa;
GetComponent<AudioSource>().Play();
}
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612152314im_/https://answers.unity.com/themes/thub/images/avi.jpg)