Why are videos lagging

Posted By: Progger

Why are videos lagging - 12/11/10 11:15

Hi i found out how to play a movie on a PAnel but my Problem s the video is lagging although wehen i play it with irfan view it plays fluently what can i do im using a .wmv video but the video is tottally hanging
THanks for ur help
and i also have 300 fps
WFG PRogger laugh
Posted By: Progger

Re: Why are videos lagging - 12/12/10 13:46

what can i do against it?
Posted By: Garrettwademan

Re: Why are videos lagging - 12/16/10 03:55

My only suggestion is to look at what I have below...my video is on a panel and I see no latency at all, the video is crisp, clear and streaming perfectly.
Code:
ENTITY* video_in_panel;

function control_streaming_video_window(){
	my.pan += 270;
	my.x = 50;
	my.y = 1;
	my.z = -11;
	my.ambient = 25;
	my.shadow = on;
	
	while(1){
		//CHECK FOR CHANGES FOR THIS HTML WINDOW
		wait(1);
	}
}

function main(){
//Some code
video_in_panel = ent_create("streaming_video_holder.mdl",vector(0,0,0),control_streaming_video_window);
streaming_video_handle = media_loop("streaming_video.mpg",bmap_for_entity(video_in_panel,0),100);
//Some code
}


© 2024 lite-C Forums