Location:
VideoPlayer.h
class MVideoPlayerUtilityObserver;
An interface to a set of video player callback functions.
The class is a mixin and is intended to be inherited by the client class which is observing the video playing operation. The functions encapsulated by this class are called when specific events occur in the process of initialising and playing an video clip. A reference to this object is passed as a parameter when constructing an audio player utility object.
Defined in MVideoPlayerUtilityObserver
:
MvpuoEvent()
, MvpuoFrameReady()
, MvpuoOpenComplete()
, MvpuoPlayComplete()
, MvpuoPrepareComplete()
virtual void MvpuoOpenComplete(TInt aError)=0;
Notification to the client that the opening of the video clip has completed, successfully, or otherwise.
The status of the video sample after opening is given by aError. The following values have the same meaning across all devices:
KErrNone: the sample is ready to play;
KErrNotSupported: the controller plugin is not recognised or not supported;
KErrNotFound: the video sample cannot be found;
KErrNoMemory: there is insufficient memory to play this video sample.
Other values are possible indicating a problem opening the video sample. These values are device dependent.
The client must now call Prepare() on the video player utility before the video clip can be played or any of its properties (e.g. duration) can be queried.
|
virtual void MvpuoPrepareComplete(TInt aError)=0;
Notification to the client that the opening of the video clip has been prepared successfully, or otherwise. This callback
is called in response to a call to CVideoPlayerUtility::Prepare()
.
The video clip may now be played, or have any of its properties (e.g. duration) queried.
|
virtual void MvpuoFrameReady(CFbsBitmap &aFrame, TInt aError)=0;
Notification that the frame requested by a call to GetFrameL is ready
|
virtual void MvpuoPlayComplete(TInt aError)=0;
Notification that video playback has completed. This is not called if playback is explicitly stopped by calling Stop.
|
virtual void MvpuoEvent(const TMMFEvent &aEvent)=0;
General event notification from controller. These events are specified by the supplier of the controller
|