CVideoPlayerEngine Class Reference

List of all members.

Public Types

enum  TPlayerState {
  ENotInitialized = 0, EInitialized, EStopped, EPlaying,
  EPaused
}

Public Member Functions

 ~CVideoPlayerEngine ()
void InitL ()
void OpenL ()
void Play ()
void PauseL ()
void Stop ()
void SetVolume (TInt aValue)
void MvpuoOpenComplete (TInt aError)
void MvpuoPrepareComplete (TInt aError)
void MvpuoFrameReady (CFbsBitmap &aFrame, TInt aError)
void MvpuoPlayComplete (TInt aError)
void MvpuoEvent (const TMMFEvent &aEvent)
TPlayerState State () const

Static Public Member Functions

static CVideoPlayerEngineNewL (VideoPlayerWrapper *aPlayerPrivate)
static CVideoPlayerEngineNewLC (VideoPlayerWrapper *aPlayerPrivate)

Detailed Description

This class forms the video player engine and provides methods to initialize, play, pause , stop and set volume for a video file. This class also implements MVideoPlayerUtilityObserver virtual methods to recieve notifications when video open, prepare and play is complete.

Definition at line 60 of file videoengine.h.


Member Enumeration Documentation

Video player engine states.

Definition at line 66 of file videoengine.h.


Constructor & Destructor Documentation

CVideoPlayerEngine::~CVideoPlayerEngine (  ) 

Destructor.

Definition at line 95 of file videoengine.cpp.


Member Function Documentation

CVideoPlayerEngine * CVideoPlayerEngine::NewL ( VideoPlayerWrapper aPlayerWrapper  )  [static]

Static NewL function to begin two-phase construction.

Parameters:
aPlayerPrivate :Instance of VideoPlayerWrapper class.

Definition at line 57 of file videoengine.cpp.

CVideoPlayerEngine * CVideoPlayerEngine::NewLC ( VideoPlayerWrapper aPlayerWrapper  )  [static]

Static NewLC used for two-phase construction.

Parameters:
aPlayerPrivate :Instance of VideoPlayerWrapper class.

Definition at line 68 of file videoengine.cpp.

void CVideoPlayerEngine::InitL (  ) 

This function creates and allocates memory for CVideoPlayerUtility2 instance, used for videoplayback.

Definition at line 114 of file videoengine.cpp.

void CVideoPlayerEngine::OpenL (  ) 

Opens a video file to be played.

Definition at line 139 of file videoengine.cpp.

void CVideoPlayerEngine::Play (  ) 

Plays a video file and updates the file name.

Definition at line 156 of file videoengine.cpp.

void CVideoPlayerEngine::PauseL (  ) 

Pauses a video file depending on the engine state.

Definition at line 175 of file videoengine.cpp.

void CVideoPlayerEngine::Stop (  ) 

Stops the video playback.

Definition at line 204 of file videoengine.cpp.

void CVideoPlayerEngine::SetVolume ( TInt  aValue  ) 

Sets the volume of video file. aParam aValue: volume to be adjusted.

Definition at line 222 of file videoengine.cpp.

void CVideoPlayerEngine::MvpuoOpenComplete ( TInt  aError  ) 

Defines the required client behaviour when an attempt to open a video sample has completed, successfully or otherwise.

Parameters:
aError,: error value.

Definition at line 244 of file videoengine.cpp.

void CVideoPlayerEngine::MvpuoPrepareComplete ( TInt  aError  ) 

This callback is generated in response to a call to Prepare() in CVideoPlayerUtility. This method adds the display window and makes necessary window adjustments before video playback could be started.

Parameters:
aError,: error value.

Definition at line 277 of file videoengine.cpp.

void CVideoPlayerEngine::MvpuoFrameReady ( CFbsBitmap &  aFrame,
TInt  aError 
)

Defines the required client behaviour when a request to capture a frame is made using CVideoPlayerUtility::GetFrame().

Definition at line 313 of file videoengine.cpp.

void CVideoPlayerEngine::MvpuoPlayComplete ( TInt  aError  ) 

Defines the required client behaviour when an attempt to play a video sample has completed, successfully or otherwise.

Parameters:
aError,: error value.

Definition at line 292 of file videoengine.cpp.

void CVideoPlayerEngine::MvpuoEvent ( const TMMFEvent &  aEvent  ) 

Mvpuo Event comes in.

Definition at line 320 of file videoengine.cpp.


Generated by  doxygen 1.6.2