VideoBase

VideoBase
Scaleform::GFx::State
    Scaleform::GFx::Video::VideoBase
Declaration
class VideoBase : public State;
Description

VideoBase is an abstract interface for creating instances of Video interface when GFx needs to play video files. This interface has four responsibilities:

  1. Create an instance of a VideoPlayer interface when GFx library requires a video play back. Each video requires its own VideoPlayer.
  2. Attach the audio from the video source to a movieclip object.
  3. Register all Action Script objects that are required for video playback.
  4. Read video stream tags from a SWF file.

VideoBase interface provides two ways of implementing background loading of game data while a video file is playing:

  1. Using a callback object that will notify a user when a video system needs to read a new chunk of video data and when a read operation has been completed.
  2. Using IsIORequired method to detect if the reading of video data is required and EnableIO method to disable/enable video read operations.
Classes
Class 
Description 
Callback interface for notifying the application when a video read operation is required and when it is completed. 
Methods
Method 
Description 
Creates an instance of VideoPlayer interface for playing the video files. 
Enables/disables video read operations for background loading of game data. 
Gets the AS2 Video ActionScript interface. 
Gets the AS3 Video ActionScript interface. 
Obtains a pointer to the memory heap used by the video system. 
Returns the texture manager used for the texture image. 
Determines if a video system needs to perform any video data read operation. 
Reads video definition tags from a SWF file. 
Sets a read callback instance to the video system for background loading of game data. 
VideoBase constructor. 
File

GFx_VideoBase.h