- Home /
Question by
daivd.ramz · Feb 27, 2013 at 04:41 PM ·
downloadmovietexturemovie
problem about hiccups during play video?
hi guys, i download a video.ogg with WWW class and play it as moveTexture,
but during play video i have hiccups(it is too bad).
what can i do for this problem here this my code:
private var movTexture:MovieTexture;
private var allow_play=false;
function Start () {
url = "file://"+Application.dataPath+"/DB/MOV/MOV/arm.ni";
www = new WWW(url);
yield www;
movTexture = www.movie;
if(www.movie.isReadyToPlay)
{
allow_play = true;
}
}
function OnGUI()
{
if(allow_play)
GUI.DrawTexture(Rect(0,0,Screen.width,Screen.height),movTexture, ScaleMode.StretchToFill, true);
}
Comment