CSmilPlayerMediaFactory Class Reference

class CSmilPlayerMediaFactory : public CBase

Factory class that creates SMIL Player media renderers accoring to the MIME type of the media file

smilmediarenderer.lib
Since
2.0

Inherits from

  • CSmilPlayerMediaFactory

Constructor & Destructor Documentation

CSmilPlayerMediaFactory()

CSmilPlayerMediaFactory()[private]

C++ default constructor.

CSmilPlayerMediaFactory(CCoeEnv &, CGraphicsContext *, MMediaFactoryFileInfo *)

CSmilPlayerMediaFactory(CCoeEnv &aCoeEnv,
CGraphicsContext *aGc,
MMediaFactoryFileInfo *aFileInfo
)[private]

Constructor.

Parameters

CCoeEnv & aCoeEnv
CGraphicsContext * aGc
MMediaFactoryFileInfo * aFileInfo

~CSmilPlayerMediaFactory()

~CSmilPlayerMediaFactory()[virtual]

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

2nd phase constructor

CreateRendererL(const TDesC &, MSmilMedia *, MSmilMediaRenderer *&)

TMediaFactoryErrorCreateRendererL(const TDesC &aUrl,
MSmilMedia *aMedia,
MSmilMediaRenderer *&aRender
)

From MSmilMediaRenderer See smilmediafactoryinterface.h for further information

Parameters

const TDesC & aUrl
MSmilMedia * aMedia
MSmilMediaRenderer *& aRender

GetRenderers()

IMPORT_C CRendererArray *GetRenderers()

Returns all renderers in the presentation.

Since
3.1

InstantiateRendererL(TMsgMediaType, RFile &, MSmilMedia *, TUint)

MSmilMediaRenderer *InstantiateRendererL(TMsgMediaTypeaMediaType,
RFile &aFileHandle,
MSmilMedia *aMedia,
TUintaCharSet
)[private]

InstantiateRendererL

Parameters

TMsgMediaType aMediaType
RFile & aFileHandle
MSmilMedia * aMedia
TUint aCharSet

NewL(CCoeEnv &, CGraphicsContext *, MMediaFactoryFileInfo *)

IMPORT_C CSmilPlayerMediaFactory *NewL(CCoeEnv &aCoeEnv,
CGraphicsContext *aGc,
MMediaFactoryFileInfo *aFileInfo
)[static]

Factory method that creates this object.

Parameters

CCoeEnv & aCoeEnvIN Control environment
CGraphicsContext * aGcIN Graphical context used to draw
MMediaFactoryFileInfo * aFileInfoIN Indicates whether only preview should be played. Default is EFalse.

PlaybackAllowedL(const TDesC8 &, RFile &)

TBool PlaybackAllowedL(const TDesC8 &aMimeType,
RFile &aFileHandle
)const [private]

PlaybackAllowedL

Parameters

const TDesC8 & aMimeType
RFile & aFileHandle

PrefetchMediaL(const TDesC &)

voidPrefetchMediaL(const TDesC &aUrl)

From MSmilMediaRenderer See smilmediafactoryinterface.h for further information

Parameters

const TDesC & aUrl

PrefetchStatus(const TDesC &, TInt &, TInt &)

TPrefetchStatusPrefetchStatus(const TDesC &aUrl,
TInt &aDown,
TInt &aSize
)

From MSmilMediaRenderer See smilmediafactoryinterface.h for further information

Parameters

const TDesC & aUrl
TInt & aDown
TInt & aSize

PresentationEnd()

voidPresentationEnd()

From MSmilMediaRenderer See smilmediafactoryinterface.h for further information

PresentationReady()

voidPresentationReady()

From MSmilMediaRenderer See smilmediafactoryinterface.h for further information

QueryContentType(const TDesC &)

TBool QueryContentType(const TDesC &aMimeType)const

From MSmilMediaRenderer See smilmediafactoryinterface.h for further information

Parameters

const TDesC & aMimeType

RendererDeleted(MSmilMediaRenderer *)

voidRendererDeleted(MSmilMediaRenderer *aRenderer)

From MSmilMediaRenderer See smilmediafactoryinterface.h for further information

Parameters

MSmilMediaRenderer * aRenderer

RequestMediaL(const TDesC &, MSmilMedia *)

voidRequestMediaL(const TDesC &aUrl,
MSmilMedia *aMedia
)

From MSmilMediaRenderer See smilmediafactoryinterface.h for further information

Parameters

const TDesC & aUrl
MSmilMedia * aMedia

ResolveErrorL(TMsgMediaType, RFile &, TInt, MSmilMedia *, MSmilMediaRenderer *&)

voidResolveErrorL(TMsgMediaTypeaMediaType,
RFile &aFileHandle,
TIntaErrorCode,
MSmilMedia *aMedia,
MSmilMediaRenderer *&aRenderer
)const [private]

ResolveErrorL

Parameters

TMsgMediaType aMediaType
RFile & aFileHandle
TInt aErrorCode
MSmilMedia * aMedia
MSmilMediaRenderer *& aRenderer

SetBaseUrlL(const TDesC &)

voidSetBaseUrlL(const TDesC &aBaseUrl)

From MSmilMediaRenderer See smilmediafactoryinterface.h for further information

Parameters

const TDesC & aBaseUrl

Member Data Documentation

RSmilTextBuf iBaseUrl

RSmilTextBuf iBaseUrl[private]

CCoeEnv & iCoeEnv

CCoeEnv &iCoeEnv[private]

DRMCommon * iDrmCommon

DRMCommon *iDrmCommon[private]

CDRMHelper * iDrmHelper

CDRMHelper *iDrmHelper[private]

MMediaFactoryFileInfo * iFileInfo

MMediaFactoryFileInfo *iFileInfo[private]

CGraphicsContext * iGc

CGraphicsContext *iGc[private]

CMsgMediaResolver * iMediaResolver

CMsgMediaResolver *iMediaResolver[private]

HBufC * iProhibitMimeTypeBuffer

HBufC *iProhibitMimeTypeBuffer[private]

TBool iProhibitNonDrmMusic

TBool iProhibitNonDrmMusic[private]

CRendererArray * iRendererArray

CRendererArray *iRendererArray[private]