2

I'm using videoDisplay MXML component for my Flex app.

I would like to autoload videos (in order to display the first frame) without automatically run them.

What's the easiest way to do it ?

thanks

4

2 に答える 2

2
player.addEventListener(VideoEvent.READY, readyHandler);
player.source = test.mp4;
player.load(); // if autoPlay is false

private function readyHandler(event:VideoEvent):void
{
   player.playheadTime = 0; //  triggers a seek to first frame
}
于 2010-07-06T05:46:26.310 に答える
1

There are 2 options:

a)FLV movie - set autoPlay="false" in VideoDisplay

b)Live stream - call player.play();player.stop() in this order

于 2010-04-15T08:26:15.743 に答える