;

PDA

Click to See Complete Forum and Search --> : Video (flv) question


Stephan P.
08-31-2005, 03:51 AM
Hi guys,

I haven't really tinkered with videos in KM yet, so maybe some of you who are more knowledgable in the area could give me a hint whether the following is possible:

Let's say I have a fun file with 2 movie clips. In the first movie clip I play a flv video. The second movie clip consists of various key frames.

I basically want to synchronize the movie of a speaking person in one MC with "slides" I show in the second MC.

Now, when the flv in the first MC plays, is there a way to trigger the second MC to start/stop based on something like "cues", or at least a time/frame position in the flv? Are there suitable events for this?

Would anyone know if that's possible?

Thanks in advance for any pointers,

Stephan

blanius
08-31-2005, 08:35 AM
Here's what I've done to check the position of the video, I used it to determine the end of the video as the NetStream.Play.Stop event was delayed in player 7.
So you can do this to track the position and act accordingly

time_interval = setInterval(checkTime, 500);

function checkTime() {

end=Math.floor(flv1.netStream.duration)-Math.floor(flv1.netStream.time);

if (end==0){
clearInterval(time_interval)
}//end if

}//end check time

Stephan P.
09-01-2005, 05:22 AM
Hi Bret,

thanks for your reply.

Do you happen to have a sample project that shows where you put the AS code?

All the best,

Stephan