private void FetchRemoteInfo()
{
const float timeoutSeconds = 10.0f;
float startTime = Time.time;
float currentTime = startTime;
if (string.IsNullOrEmpty(this.LocalInfo.Url) == false)
{
using (var www = new WWW(Uri.EscapeUriString(this.LocalInfo.Url)))
{
while ((!www.isDone) && ((currentTime - startTime) < timeoutSeconds))
{
Thread.Sleep(100);
currentTime = Time.time;
}
if ((www.error == null) && ((currentTime - startTime) < timeoutSeconds))
{
this.SetRemoteAvcInfo(www);
}
else
{
this.SetLocalInfoOnly();
}
}
}
else
{
this.SetLocalInfoOnly();
}
}