private void Start()
{
urls = (Application.dataPath + “/MainMenu.ogg”);
StartCoroutine(Sound(urls));
}
IEnumerator Sound(string url)
{
WWW www = new WWW(url);
yield return www;
AudioSource audio = GetComponent<AudioSource>();
audio.clip = www.GetAudioClip(false, false);
audio.Play();
if (!string.IsNullOrEmpty(www.error))
Debug.Log(www.error);
}
When i try mp3, it says “not supported” but what is happening now with 404 Not Found?
Thanks