Playing recorded files as if they were live
Hey everybody,
Let me describe what I am trying to do:
There are some recorded flv files. The guy in the video is showing numbers with his hands. (1.flv, 2.flv, 3.flv etc) And there are live idle videos. In these idle videos the guy doesnt do anything.
I need to be able to click 1 as the operator and viewers should see the guy make "1" in the video. Actually I have accomplished so far. It works. I do this:
If the operator selects a video it adds the video to playlist: stream.play(filename, -2, -1, false);
Also have this event handler to play a random idle video when there are no more action videos lined up:
function onStreamStatus(obj) {
if (obj.code != "NetStream.Play.Stop") return;
switch (obj.code) {
case "NetStream.Play.Stop":
playRandomIdleVideo(this.name);
break;
}
}
So it is working so far. Problem is:
As time goes by there appears to be a delay between I issue the play command on the stream and I actually see it in the video on client side.
Any ideas why this might happen?
Thanks in advance
