Hi
I want to make a simple video player with VideoLoader. But when I try to "fast forward" my video,
addEventListener(Event.ENTER_FRAME, onFrame);
private function onFrame(e:Event):void
{
if (videoLoader.duration - videoLoader.videoTime < 1) {
removeEventListener(Event.ENTER_FRAME, onFrame);
}else {
videoLoader.videoTime += someSpeed;
}
}
I found "videoTime" it never change, then
in http://www.greensock...loadermax/#bugs
If you seek() to a certain time in a NetStream and then immediately check its “time” property, it is often incorrect (reflects the previous time, not the new one)
so, I change my code, just skip some frames do videoLoader.videoTime += someSpeed; not every frame.
it works! But not smooth enough.
If there has a better solution? Thanks.