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

Public Member Functions
~CSmilPlayerMediaFactory ()
TMediaFactoryError CreateRendererL (const TDesC &, MSmilMedia *, MSmilMediaRenderer *&)
IMPORT_C CRendererArray * GetRenderers ()
IMPORT_C CSmilPlayerMediaFactory * NewL ( CCoeEnv &, CGraphicsContext *, MMediaFactoryFileInfo *)
void PrefetchMediaL (const TDesC &)
TPrefetchStatus PrefetchStatus (const TDesC &, TInt &, TInt &)
void PresentationEnd ()
void PresentationReady ()
TBool QueryContentType (const TDesC &)
void RendererDeleted ( MSmilMediaRenderer *)
void RequestMediaL (const TDesC &, MSmilMedia *)
void SetBaseUrlL (const TDesC &)
Private Member Functions
CSmilPlayerMediaFactory ()
CSmilPlayerMediaFactory ( CCoeEnv &, CGraphicsContext *, MMediaFactoryFileInfo *)
void ConstructL ()
MSmilMediaRenderer * InstantiateRendererL ( TMsgMediaType , RFile &, MSmilMedia *, TUint )
TBool PlaybackAllowedL (const TDesC8 &, RFile &)
void ResolveErrorL ( TMsgMediaType , RFile &, TInt , MSmilMedia *, MSmilMediaRenderer *&)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
RSmilTextBuf iBaseUrl
CCoeEnv & iCoeEnv
DRMCommon * iDrmCommon
CDRMHelper * iDrmHelper
MMediaFactoryFileInfo * iFileInfo
CGraphicsContext * iGc
CMsgMediaResolver * iMediaResolver
HBufC * iProhibitMimeTypeBuffer
TBool iProhibitNonDrmMusic
CRendererArray * iRendererArray

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()

void ConstructL ( ) [private]

2nd phase constructor

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

TMediaFactoryError CreateRendererL ( 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 ( TMsgMediaType aMediaType,
RFile & aFileHandle,
MSmilMedia * aMedia,
TUint aCharSet
) [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 & aCoeEnv IN Control environment
CGraphicsContext * aGc IN Graphical context used to draw
MMediaFactoryFileInfo * aFileInfo IN 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 &)

void PrefetchMediaL ( const TDesC & aUrl )

From MSmilMediaRenderer See smilmediafactoryinterface.h for further information

Parameters

const TDesC & aUrl

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

TPrefetchStatus PrefetchStatus ( const TDesC & aUrl,
TInt & aDown,
TInt & aSize
)

From MSmilMediaRenderer See smilmediafactoryinterface.h for further information

Parameters

const TDesC & aUrl
TInt & aDown
TInt & aSize

PresentationEnd()

void PresentationEnd ( )

From MSmilMediaRenderer See smilmediafactoryinterface.h for further information

PresentationReady()

void PresentationReady ( )

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 *)

void RendererDeleted ( MSmilMediaRenderer * aRenderer )

From MSmilMediaRenderer See smilmediafactoryinterface.h for further information

Parameters

MSmilMediaRenderer * aRenderer

RequestMediaL(const TDesC &, MSmilMedia *)

void RequestMediaL ( 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 *&)

void ResolveErrorL ( TMsgMediaType aMediaType,
RFile & aFileHandle,
TInt aErrorCode,
MSmilMedia * aMedia,
MSmilMediaRenderer *& aRenderer
) const [private]

ResolveErrorL

Parameters

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

SetBaseUrlL(const TDesC &)

void SetBaseUrlL ( 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]