RMMFVideoPlaySubtitleSupportCustomCommands Class Reference

class RMMFVideoPlaySubtitleSupportCustomCommands : public RMMFCustomCommandsBase

Client class to access functionality specific to a subtitle supported playback controller. The class uses the custom command function of the controller plugin, and removes the necessity for the client to formulate the custom commands.

Inherits from

Constructor & Destructor Documentation

RMMFVideoPlaySubtitleSupportCustomCommands(RMMFController &)

IMPORT_CRMMFVideoPlaySubtitleSupportCustomCommands(RMMFController &aController)

Constructor.

Parameters

RMMFController & aControllerThe client side controller object to be used by this custom command interface.

Member Functions Documentation

AddSubtitleConfig(const TMMFSubtitleWindowConfig &)

IMPORT_C TIntAddSubtitleConfig(const TMMFSubtitleWindowConfig &aConfig)

Adds subtitle configuration data for a window.

Parameters

const TMMFSubtitleWindowConfig & aConfigSubtitle configuration data for a window.

DisableSubtitles()

IMPORT_C TIntDisableSubtitles()

Disables subtitles during video playback.

EnableSubtitles()

IMPORT_C TIntEnableSubtitles()

Enables subtitles during video playback.

GetCrpParameters(TInt, TWsGraphicId &, TRect &)

IMPORT_C TIntGetCrpParameters(TIntaWindowId,
TWsGraphicId &aId,
TRect &aCrpRect
)

Gets the CRP parameters associated with a display

Parameters

TInt aWindowIdThe window id used in the query.
TWsGraphicId & aIdReturn the CRP id associated with the given display id
TRect & aCrpRectReturn the subtitle region for drawing the CRP

GetSubtitleLanguage(TLanguage &)

IMPORT_C TIntGetSubtitleLanguage(TLanguage &aLanguage)

Gets the current subtitle language

Parameters

TLanguage & aLanguageOn return, set the the current language.

GetSubtitlesAvailable(TBool &)

IMPORT_C TIntGetSubtitlesAvailable(TBool &aAvailable)

Checks if subtitles are available in the current video stream.

Parameters

TBool & aAvailableWhen this function returns, this is set to ETrue if the controller supports subtitle extensions and subtitles are available in the current video stream.

GetSupportedSubtitleLanguagesL(RArray< TLanguage > &)

IMPORT_C voidGetSupportedSubtitleLanguagesL(RArray< TLanguage > &aSubtitleLanguages)

Gets a list of all available languages.

leave
KErrNotSupported If the current controller does not support subtitles.
leave
KErrNotFound If the controller cannot find subtitle data.
leave
Otherwise leaves with any of the system wide error codes.

Parameters

RArray< TLanguage > & aSubtitleLanguages

RemoveSubtitleConfig(TInt)

IMPORT_C TIntRemoveSubtitleConfig(TIntaWindowId)

Removes the subtitle configuration data associated with the given window.

Parameters

TInt aWindowIdUnique identifier of the window associated with the configuration data being removed.

SetSubtitleLanguage(TLanguage)

IMPORT_C TIntSetSubtitleLanguage(TLanguageaSubtitleLanguage)

Sets the current subtitle language

Parameters

TLanguage aSubtitleLanguageLanguage to be used for subtitle stream.

UpdateSubtitleConfig(const TMMFSubtitleWindowConfig &)

IMPORT_C TIntUpdateSubtitleConfig(const TMMFSubtitleWindowConfig &aConfig)

Reconfigures subtitle configuration.

Parameters

const TMMFSubtitleWindowConfig & aConfigSubtitle configuration data for a window.