MVtEngMedia Class Reference

class MVtEngMedia

Media interface for defining data types for media transport and presentation of it locally as well methods for obtaining current configuration.

videoteleng.lib
Since
Series 60 2.6
Public Member Functions
TInt GetCameraInfo(const TCameraId, TCameraInfo &)
voidGetCameraOrientations(TCameraOrientation &, TCameraOrientation &)
TInt GetCurrentCameraId(TCameraId &)
TInt GetCurrentZoomStep(TInt &)
TInt GetDsaState(const TMediaDirection, TBool &)
TInt GetFreezeState(TBool &)
TInt GetFreezeSupported(TBool &)
voidGetMajorZoomStep(TInt, TInt &)
TInt GetMajorZoomStepCount(TInt &)
TInt GetMaxZoomStep(TInt &)
TInt GetMediaState(const TMediaDirection, TInt &)
voidGetObjectSharingState(TShareObjectState &)
TInt GetSource(TMediaSource &)
TInt GetSourcesCaps(TInt &)
voidGetVideoQuality(TVideoQuality &)
TBool RenderingStarted(const TMediaDirection)
TBool VideoCallConnected()
Public Member Enumerations
enumTCameraId { EPrimaryCamera, ESecondaryCamera }
enumTCameraOrientation { EOrientationLandscape, EOrientationPortrait, EOrientationObeyLayoutSwitch }
enumTMediaDirection { EMediaOutgoing, EMediaIncoming }
enumTMediaSource {
EMediaNone, EMediaCamera, EMediaCameraPri, EMediaCameraSec, EMediaStillImage, EMediaVideoStream, EMediaShare
}
enumTMediaType {
EMediaAudio = (1 << 0 ), EMediaVideo = ( 1 << 1 ), EMediaAudioPreparing = ( 1 << 2 ), EMediaVideoPreparing = ( 1 << 3 ), EMediaAudioChannelOpen = ( 1 << 4 ), EMediaVideoChannelOpen = ( 1 << 5 )
}
enumTShareObjectState {
ENotAbleToShare, ENotSharing, EInitializingShareImage, EInitializingShareVideoClip, ESharingImage, ESharingVideoClip
}
enumTSourceCapsFlags { ESourceCapsPrimaryCamera = ( 1 << 0 ), ESourceCapsSecondaryCamera = ( 1 << 1 ), ESourceCapsStillImage = ( 1 << 2 ) }
enumTVideoQuality { EVideoQualityUndefined, EVideoQualityDetail, EVideoQualityNormal, EVideoQualityMotion }
Public Member Type Definitions
typedef TFileName TShareObjectImageParameters
typedef TFileName TShareObjectVideoClipParameters

Member Functions Documentation

GetCameraInfo(const TCameraId, TCameraInfo &)

TInt GetCameraInfo(const TCameraIdaId,
TCameraInfo &aInfo
)const [pure virtual]

Returns camera information.

Parameters

const TCameraId aIdcamera to query information for.
TCameraInfo & aInforeturns camera information

GetCameraOrientations(TCameraOrientation &, TCameraOrientation &)

voidGetCameraOrientations(TCameraOrientation &aPrimaryCameraOrientation,
TCameraOrientation &aSecondaryCameraOrientation
)const [pure virtual]

Gets camera orientations for primary and secondary camera. MVtEngMedia::TCameraOrientation

Parameters

TCameraOrientation & aPrimaryCameraOrientationpriamry camera orientation.
TCameraOrientation & aSecondaryCameraOrientationsecondary camera orientation.

GetCurrentCameraId(TCameraId &)

TInt GetCurrentCameraId(TCameraId &aId)const [pure virtual]

Returns currently active camera.

Parameters

TCameraId & aId

GetCurrentZoomStep(TInt &)

TInt GetCurrentZoomStep(TInt &aCurrentStep)[pure virtual]

Gets current zoom step

Parameters

TInt & aCurrentStepcurrent zoom step

GetDsaState(const TMediaDirection, TBool &)

TInt GetDsaState(const TMediaDirectionaMediaDirection,
TBool &aActive
)const [pure virtual]

Returns state of DSA drawing, whether is active or not.

Parameters

const TMediaDirection aMediaDirectionin or out direction
TBool & aActive

GetFreezeState(TBool &)

TInt GetFreezeState(TBool &aFrozen)const [pure virtual]
Gets freeze current status.
Since
S60 3.1

Parameters

TBool & aFrozen

GetFreezeSupported(TBool &)

TInt GetFreezeSupported(TBool &aFreezeSupported)const [pure virtual]
Gets freeze support status.
Since
S60 3.1

Parameters

TBool & aFreezeSupportedETrue if freeze is supported, EFalse otherwise.

GetMajorZoomStep(TInt, TInt &)

voidGetMajorZoomStep(TIntaIndex,
TInt &aStep
)[pure virtual]

Maps major zoom leap step to corresponding step index.

Parameters

TInt aIndexmajor zoom step.
TInt & aStepzoom step

GetMajorZoomStepCount(TInt &)

TInt GetMajorZoomStepCount(TInt &aCount)[pure virtual]

Gets number of major zoom level leaps. Less than or equal to maximum digital zoom steps.

Parameters

TInt & aCountnumber of leaps

GetMaxZoomStep(TInt &)

TInt GetMaxZoomStep(TInt &aMaxZoomStep)[pure virtual]

Gets maximum zoom value that may be passed to camera.

Parameters

TInt & aMaxZoomStepmaximum zoom step.

GetMediaState(const TMediaDirection, TInt &)

TInt GetMediaState(const TMediaDirectionaMediaDirection,
TInt &aActiveMedia
)const [pure virtual]

Returns state of transmission local video/audio to remote end.

Parameters

const TMediaDirection aMediaDirection
TInt & aActiveMediareturns active media as bitmap (see TMediaType).

GetObjectSharingState(TShareObjectState &)

voidGetObjectSharingState(TShareObjectState &aObjectSharingState)const [pure virtual]
Gets current object sharing state. MVtEngMedia::TShareObjectState.
Since
S60 3.1

Parameters

TShareObjectState & aObjectSharingStateOn return contains current object sharing state.

GetSource(TMediaSource &)

TInt GetSource(TMediaSource &aSource)const [pure virtual]

Returns active source for video transmission and local display.

Parameters

TMediaSource & aSourcesource in return

GetSourcesCaps(TInt &)

TInt GetSourcesCaps(TInt &aCaps)const [pure virtual]

Returns source capabilities.

Parameters

TInt & aCaps

GetVideoQuality(TVideoQuality &)

voidGetVideoQuality(TVideoQuality &aVideoQuality)const [pure virtual]
Gets current local video quality setting.
Since
S60 3.1

Parameters

TVideoQuality & aVideoQualityCurrent local video quality settings.

RenderingStarted(const TMediaDirection)

TBool RenderingStarted(const TMediaDirectionaDirection)const [pure virtual]

Returns ETrue if rendering has been started.

Parameters

const TMediaDirection aDirectionspecifies the rendering direction to check

VideoCallConnected()

TBool VideoCallConnected()const [pure virtual]

Returns state of VideoCall, whether is connected or not.

Member Enumerations Documentation

Enum TCameraId

EPrimaryCamera Primary camera is inwards faced. ESecondaryCamera Camera is facing outwards.

Enumerators

EPrimaryCamera
ESecondaryCamera

Enum TCameraOrientation

Defines layout (screen orientation) used by Video Telephone application per active camera. Each camera has one of the following values:

EOrientationLandscape Layout is always landscape. EOrientationPortrait Layout is always portrait. EOrientationObeyLayoutSwitch Obey layout in specific device mode.

Enumerators

EOrientationLandscape
EOrientationPortrait
EOrientationObeyLayoutSwitch

Enum TMediaDirection

EMediaOutgoing outbound media EMediaIncoming inbound media

Enumerators

EMediaOutgoing
EMediaIncoming

Enum TMediaSource

EMediaNone No media source selected. EMediaCamera Camera selected EMediaCameraPri Primary camera selected. Camera is inwards EMediaCameraSec Secondary camera selected. Camera is outwards EMediaStillImage Still image as source. EMediaVideoStream Video stream selected.

Enumerators

EMediaNone
EMediaCamera
EMediaCameraPri
EMediaCameraSec
EMediaStillImage
EMediaVideoStream
EMediaShare

Enum TMediaType

Enumerators

EMediaAudio = (1 << 0 )
EMediaVideo = ( 1 << 1 )
EMediaAudioPreparing = ( 1 << 2 )
EMediaVideoPreparing = ( 1 << 3 )
EMediaAudioChannelOpen = ( 1 << 4 )
EMediaVideoChannelOpen = ( 1 << 5 )

Enum TShareObjectState

Enumerates object sharing state.

ENotAbleToShare Is not able to share any objects (engine in wrong state) ENotSharing Is not sharing anything EInitializingShareImage Initializing still image sharing. ESharingImage Is sharing image ESharingVideoClip Is sharing video clip

Enumerators

ENotAbleToShare
ENotSharing
EInitializingShareImage
EInitializingShareVideoClip
ESharingImage
ESharingVideoClip

Enum TSourceCapsFlags

ESourceCapsPrimaryCamera primary camera can be selected. ESourceCapsSecondaryCamera secondary camera can be selected. ESourceCapsStillImage still image can be selected.

Enumerators

ESourceCapsPrimaryCamera = ( 1 << 0 )
ESourceCapsSecondaryCamera = ( 1 << 1 )
ESourceCapsStillImage = ( 1 << 2 )

Enum TVideoQuality

Video quality enumeration.

EVideoQualityUndefined video quality has not been set yet. EVideoQualityDetail means slow frame rate, good image quality.. EVideoQualityNormal smoother video with somewhat lower image quality than EVideoQualityDetail. EVideoQualityMotion the smoothest video with the worst image quality.

Enumerators

EVideoQualityUndefined
EVideoQualityDetail
EVideoQualityNormal
EVideoQualityMotion

Member Type Definitions Documentation

Typedef TShareObjectImageParameters

typedef TFileName TShareObjectImageParameters

Command parameters for Image sharing.

Typedef TShareObjectVideoClipParameters

typedef TFileName TShareObjectVideoClipParameters

Command parameters for Video Clip sharing.