VideoTexture—Show First Frame?

Software: Away3D 4.x

Lucid, Member
Posted: 01 October 2013 04:49 PM   Total Posts: 93

• I’m applying a (video) VideoTexture to an object.
• I have the autoPlay property set to false (on purpose)
• I want, however, to display the 1st frame of the video

How do I do this?

————
Here’s a few things I’ve tried:

I’ve added a new function in the VideoTexture class and tried to add eventListeners to various variables in the SimpleVideoPlayer I’ve made public, such as _ns, _nc and _video.

public function single():void { 
bitmapData.lock();
bitmapData.fillRect(_clippingRect, 0);
bitmapData.draw(_player.container, null, null, null, _clippingRect);
bitmapData.unlock();
invalidateContent();}

So far, I’ve not been able to get anything to work. Ideally the VideoTexture class would have a showFrame or showFirstFrame parameter to show the first frame of the video without it having to play first.

So, how do I go about showing the first frame of the video without playing it? What classes to I need to change? What event listeners do I need to add, etc?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X