AppEasy Core SDK  1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
CzVideo Class Reference

#include <CzVideo.h>

Inheritance diagram for CzVideo:
IzXomlResource

List of all members.

Public Types

enum  eVideo_State { State_Invalid, State_Loaded }

Public Member Functions

eVideo_State getState () const
CzStringgetFilename ()
void setRepeatCount (int count)
int getRepeatCount () const
CzIRect getRect () const
void setRect (int x, int y, int w, int h)
void setRect (CzIRect &rect)
eCzVideoCodec getCodec () const
void setVolume (float volume)
float getVolume () const
 CzVideo ()
virtual ~CzVideo ()
bool Init (const char *filename, bool preload, bool blocking, eCzVideoCodec codec)
bool Init (char *video_data, uint32 video_data_len, eCzVideoCodec codec)
bool Play ()
bool Load (bool blocking=true)
int LoadFromXoml (IzXomlResource *parent, bool load_children, CzXmlNode *node)
virtual void ProcessEventActions (unsigned int event_name)
 Process the event actions described by event_name.
virtual void NotifyStopped ()
void FinishLoad ()

Protected Attributes

char * VideoData
 Raw video data.
uint32 VideoDataLen
 Length of raw video data.
CzFileFile
 File object (if video if file based)

Member Enumeration Documentation

Enumerator:
State_Invalid 
State_Loaded 

Constructor & Destructor Documentation

CzVideo::CzVideo ( ) [inline]
CzVideo::~CzVideo ( ) [virtual]

Member Function Documentation

eCzVideoCodec CzVideo::getCodec ( ) const [inline]
CzIRect CzVideo::getRect ( ) const [inline]
int CzVideo::getRepeatCount ( ) const [inline]
eVideo_State CzVideo::getState ( ) const [inline]
float CzVideo::getVolume ( ) const [inline]
bool CzVideo::Init ( const char *  filename,
bool  preload,
bool  blocking,
eCzVideoCodec  codec 
)
bool CzVideo::Init ( char *  video_data,
uint32  video_data_len,
eCzVideoCodec  codec 
)
bool CzVideo::Load ( bool  blocking = true)
int CzVideo::LoadFromXoml ( IzXomlResource parent,
bool  load_children,
CzXmlNode node 
) [virtual]

Implements IzXomlResource.

void CzVideo::NotifyStopped ( ) [virtual]
bool CzVideo::Play ( )
void CzVideo::ProcessEventActions ( unsigned int  event_name) [virtual]

Process the event actions described by event_name.

Processes the actions list that is associated with the event named event_name (event_name is a hash of the actual event name to speed up searches)

Parameters:
event_nameName of the event as a string hash
void CzVideo::setRect ( int  x,
int  y,
int  w,
int  h 
) [inline]
void CzVideo::setRect ( CzIRect rect) [inline]
void CzVideo::setRepeatCount ( int  count) [inline]
void CzVideo::setVolume ( float  volume) [inline]

Member Data Documentation

CzFile* CzVideo::File [protected]

File object (if video if file based)

char* CzVideo::VideoData [protected]

Raw video data.

uint32 CzVideo::VideoDataLen [protected]

Length of raw video data.


The documentation for this class was generated from the following files: