PDA

View Full Version : load streaming video at specific cuepoint - AS 3.0


lzoumas
10-23-2007, 06:06 PM
Hello I have a video with 6 embedded cuepoints (Chapter1-Chapter6)

All I want to do is load the video at a specific, in this chase the one named "Chapter4" cuepoint.

Here is the actionscript 3.0 code I have so far (where "player" is the name of the flvplayback component), which obviously isn't working...

player.source = "rtmp://www.whatever.com/Youth.flv";
player.seekToNavCuePoint("Chapter4");

I am getting this error... VideoError: 1003: Invalid seek

Any advice on how to do this would be greatly appreciated...

Thanks in advance,
Lee

Sekhar
10-24-2007, 06:50 AM
You're trying to seek before the video is loaded - listen to the "ready" event before seeking.