class CBubbleVideoPlayer : public CBase |
Public Member Functions | |
---|---|
~CBubbleVideoPlayer() | |
void | AdjustToWindow(RWindow &, const TRect &, TBool) |
void | AdjustToWindow2(RWindow &) |
void | MuteAudio() |
CBubbleVideoPlayer * | New(const TDesC &, TInt, TUint, MBubbleVideoPlayerObserver &, RWindow &) |
CBubbleVideoPlayer * | NewL(const TDesC &, TInt, TUint, MBubbleVideoPlayerObserver &, RWindow &) |
TInt | PausePlaying() |
void | Play(TRingingType, TInt) |
void | ResumePlaying() |
TVideoPlayerState | State() |
void | StopPlaying() |
TVideoResolution | VideoResolution() |
Private Member Functions | |
---|---|
CBubbleVideoPlayer() | |
CBubbleVideoPlayer(MBubbleVideoPlayerObserver &) | |
void | CalculateClipAndScreenRectSize(const TSize &, const TSize &, TSize &, TSize &) |
TSize | CalculateScreenRectSize(const TSize &, const TSize &, TBool) |
void | ConstructL(const TDesC &, TInt, TUint, RWindow &) |
TInt | DoRingingRepeat() |
TInt | DoVolumeRamp() |
void | MvpuoEvent(const TMMFEvent &) |
void | MvpuoFrameReady(CFbsBitmap &, TInt) |
void | MvpuoOpenComplete(TInt) |
void | MvpuoPlayComplete(TInt) |
void | MvpuoPrepareComplete(TInt) |
TInt | RepeatsTrailPauseTimerCallback(TAny *) |
void | SetRingingType(TRingingType) |
void | SetVolume(TInt) |
TSize | VideoFrameSize() |
TInt | VolumeRampTimerCallback(TAny *) |
Public Member Enumerations | |
---|---|
enum | TRingingType { ETypeRinging, ETypeRingingOnce, ETypeAscending } |
enum | TVideoPlayerState { EVideoError = -1, EVideoClosed, EVideoOpening, EVideoOpen, EVideoPreparing, EVideoReady, EVideoPlaying, EVideoPaused } |
enum | TVideoResolution { EVideoOther = -1, EVideoQCIF, EVideoSubQCIF } |
CBubbleVideoPlayer | ( | MBubbleVideoPlayerObserver & | aObserver | ) | [private] |
C++ constructor.
MBubbleVideoPlayerObserver & aObserver |
void | AdjustToWindow | ( | RWindow & | aDisplayWindow, |
const TRect & | aUncropPane, | |||
TBool | aArbitaryScalingSupported = EFalse | |||
) |
Scales and crops video to cover target window. Series 60 v3.2
void | AdjustToWindow2 | ( | RWindow & | aDisplayWindow | ) |
Scales and crops video to cover target window. This method doens't use uncrop pane and crops video only when needed. Allowed cropping can be set via KPhoneMaxVideoCrop. Cropped video is centered to video pane. This metdod should be used only when video player supports arbitrary scaling of video image. Series 60 v3.2
RWindow & aDisplayWindow | Window for video playback. |
void | CalculateClipAndScreenRectSize | ( | const TSize & | aWindowSize, |
const TSize & | aVideoFrameSize, | |||
TSize & | aClipSize, | |||
TSize & | aScreenSize | |||
) | [private, static] |
Calculates aClipSize and aScreenSize based on aWindowSize and aVideoFrameSize. aScreenSize is set to maximum without exceeding the crop limit (KPhoneMaxVideoCrop). aClipSize is set match to scaled video image to prevent black stripes around video.
TSize | CalculateScreenRectSize | ( | const TSize & | aCanvasSize, |
const TSize & | aVideoFrameSize, | |||
TBool | aArbitraryScalingSupported | |||
) | [private, static] |
Calculates size for video player screen rectangle based on canvas and video dimensions.
void | ConstructL | ( | const TDesC & | aFileName, |
TInt | aPriority, | |||
TUint | aPreference, | |||
RWindow & | aVideoTarget | |||
) | [private] |
By default Symbian 2nd phase constructor is private.
void | MvpuoEvent | ( | const TMMFEvent & | aEvent | ) | [private] |
MvpuoEvent
const TMMFEvent & aEvent |
void | MvpuoFrameReady | ( | CFbsBitmap & | aFrame, |
TInt | aError | |||
) | [private] |
MvpuoFrameReady
CFbsBitmap & aFrame | |
TInt aError |
void | MvpuoOpenComplete | ( | TInt | aError | ) | [private] |
MvpuoOpenComplete
TInt aError |
void | MvpuoPlayComplete | ( | TInt | aError | ) | [private] |
MvpuoPlayComplete
TInt aError |
void | MvpuoPrepareComplete | ( | TInt | aError | ) | [private] |
MvpuoPrepareComplete
TInt aError |
CBubbleVideoPlayer * | New | ( | const TDesC & | aRingingTone, |
TInt | aPriority, | |||
TUint | aPreference, | |||
MBubbleVideoPlayerObserver & | aObserver, | |||
RWindow & | aVideoTarget | |||
) | [static] |
Two-phased constructor (non leaving). The instance of the video player. NULL is returned if creation failed.
const TDesC & aRingingTone | |
TInt aPriority | The priority for the playing |
TUint aPreference | The preference value |
MBubbleVideoPlayerObserver & aObserver | Video player observer |
RWindow & aVideoTarget |
CBubbleVideoPlayer * | NewL | ( | const TDesC & | aRingingTone, |
TInt | aPriority, | |||
TUint | aPreference, | |||
MBubbleVideoPlayerObserver & | aObserver, | |||
RWindow & | aVideoTarget | |||
) | [static] |
Two-phased constructor. The instance of the video player.
const TDesC & aRingingTone | The ringing tone |
TInt aPriority | The priority for the playing |
TUint aPreference | The preference value |
MBubbleVideoPlayerObserver & aObserver | Video player observer |
RWindow & aVideoTarget |
void | Play | ( | TRingingType | aRingType, |
TInt | aVolume | |||
) |
Plays the loaded video. Series 60 v3.2
TRingingType aRingType | |
TInt aVolume | take value from 1 to 10 |
TInt | RepeatsTrailPauseTimerCallback | ( | TAny * | aObj | ) | [private, static] |
RepeatsTrailPauseTimerCallback
TAny * aObj |
void | SetRingingType | ( | TRingingType | aRingingType | ) | [private] |
SetRingingType
TRingingType aRingingType |
TVideoPlayerState | State | ( | ) | const |
Get the state of the phone video player. Series 60 v3.2
The status of video player
TVideoResolution | VideoResolution | ( | ) | const |
Get the resolution of the loaded video. Series 60 v3.2
The resolution.
TInt | VolumeRampTimerCallback | ( | TAny * | aObj | ) | [private, static] |
VolumeRampTimerCallback
TAny * aObj |
EVideoError = -1 | |
EVideoClosed | |
EVideoOpening | |
EVideoOpen | |
EVideoPreparing | |
EVideoReady | |
EVideoPlaying | |
EVideoPaused |