Hey Ramiro -
Had been out of town. Just got back and checked my code, and it turns out I already had set preload to true in my site.xml for the flv I'm trying to seek to, so I guess that's not the issue.
Have tried adding the seek command wherever it seemed to make sense, and still can't get my video to start anywhere other than the first frame at time 0.
The video is roughly six minutes long and trace statements show it starting at frame 0
In onMyCuePoint - id = videoAssetFHTH1 and event.info.time = 0
First I'm setting up my netstream like this:
ns = Gaia.api.getPage(videoAssetOfThisPage).assets[id] as INetStream;
if (ns)
{
if (videoClickedName == "FHIntro")
{
trace("here Inside prepareVideo where FHIntro is the videoClickedName - - videoAssetOfThisPage = " + videoAssetOfThisPage + " and myVideoId = " + myVideoId);
trace("id = " + id + " and if that's videoAssetFHTH1 will then seek to seekVal of " + seekVal);
INetStream(Gaia.api.getPage(videoAssetOfThisPage).assets[myVideoId]).volume = 1;
INetStream(Gaia.api.getPage(videoAssetOfThisPage).assets[myVideoId]).pan = 0;
INetStream(Gaia.api.getPage(videoAssetOfThisPage).assets[myVideoId]).seek(seekVal); //doesn't help to use a number here in place of seekVal variable
INetStream(Gaia.api.getPage(videoAssetOfThisPage).assets[myVideoId]).play();
INetStream(Gaia.api.getPage(videoAssetOfThisPage).assets[myVideoId]).pause();
trace("B here in prepareVideo = after seeking to seekVal");
INetStream(Gaia.api.getPage(videoAssetOfThisPage).assets[myVideoId].addEventListener(NetStatusEvent.NET_STATUS, onNetStreamStatus, false, 0, true));
INetStream(Gaia.api.getPage(videoAssetOfThisPage).assets[myVideoId].addEventListener(NetStreamAssetEvent.CUEPOINT, onMyCuePoint, false, 0, true));
}
ns.attach(myVideo);
Gaia.api.getDepthContainer(Gaia.MIDDLE).addChild(myVideo);
addVideoBtns();
ns.play();
}
I'm going to try to use the greensock LoaderMax as you'd suggested earlier, but I'd still like to know how to implement a simple seek function within Gaia. So if you see any issues with the code, please point them out.
Or if you (or anyone) know if seek only works with an FLVPlayback component, please let me know that as well.
Thanks