#include "mmfstandardcustomcommands.h"
class RMMFVideoPlayControllerCustomCommands : public RMMFCustomCommandsBase |
Public Member Functions | |
---|---|
RMMFVideoPlayControllerCustomCommands(RMMFController &) | |
IMPORT_C TInt | DirectScreenAccessEvent(const TMMFDSAEvent) |
IMPORT_C TInt | GetAudioEnabled(TBool &) |
IMPORT_C TInt | GetCropRegion(TRect &) |
IMPORT_C void | GetFrame(CFbsBitmap &, TRequestStatus &) |
IMPORT_C TInt | GetLoadingProgress(TInt &) |
IMPORT_C TInt | GetRotation(TVideoRotation &) |
IMPORT_C TInt | GetScaleFactor(TReal32 &, TReal32 &, TBool &) |
IMPORT_C TInt | Play(const TTimeIntervalMicroSeconds &, const TTimeIntervalMicroSeconds &) |
IMPORT_C TInt | Prepare() |
IMPORT_C TInt | RefreshFrame() |
IMPORT_C TInt | SetCropRegion(const TRect &) |
IMPORT_C TInt | SetDisplayWindow(const TRect &, const TRect &) |
IMPORT_C TInt | SetRotation(TVideoRotation) |
IMPORT_C TInt | SetScaleFactor(TReal32, TReal32, TBool) |
IMPORT_C TInt | UpdateDisplayRegion(const TRegion &) |
Inherited Attributes | |
---|---|
RMMFCustomCommandsBase::iController | |
RMMFCustomCommandsBase::iDestinationPckg |
Inherited Functions | |
---|---|
RMMFCustomCommandsBase::RMMFCustomCommandsBase(RMMFController &,TUid) |
Client class to access functionality specific to a video 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.
IMPORT_C | RMMFVideoPlayControllerCustomCommands | ( | RMMFController & | aController | ) |
Constructor.
Parameter | Description |
---|---|
aController | The client side controller object to be used by this custom command interface. |
IMPORT_C TInt | DirectScreenAccessEvent | ( | const TMMFDSAEvent | aDSAEvent | ) | const |
Sends a direct screen access event to controller.
Parameter | Description |
---|---|
aDSAEvent | The direct screen access event. |
Returns: One of the system-wide error codes.
Gets the crop region currently applied to the image.
Parameter | Description |
---|---|
aCropRegion | The dimensions of the crop region, relative to the video image. If no crop region has been applied, the full dimensions of the video image will be returned. |
Returns: One of the system-wide error codes.
IMPORT_C void | GetFrame | ( | CFbsBitmap & | aBitmap, |
TRequestStatus & | aStatus | |||
) |
Asks the controller to store the current frame to a bitmap.
The video play controller will send an event to the client on completion of the task.
Parameter | Description |
---|---|
aBitmap | The handle of the CFbsBitmap object to retrieve the frame to. |
aStatus | The active object to call back on. |
Returns: One of the system-wide error codes.
IMPORT_C TInt | GetRotation | ( | TVideoRotation & | aRotation | ) | const |
Queries the rotation that is currently applied to the video image.
Parameter | Description |
---|---|
aRotation | The applied rotation. |
Returns: One of the system wide error codes.
IMPORT_C TInt | GetScaleFactor | ( | TReal32 & | aWidthPercentage, |
TReal32 & | aHeightPercentage, | |||
TBool & | aAntiAliasFiltering | |||
) | const |
Gets the scale factor currently applied to the video image.
Parameter | Description |
---|---|
aWidthPercentage | On return, will contain the percentage (100 = original size) used to scale the width of the video image. |
aHeightPercentage | On return. will contain the percentage (100 = original size) used to scale the height of the video image. |
aAntiAliasFiltering | True if anti-aliasing filtering is being used |
Returns: One of the system wide error codes.
IMPORT_C TInt | Play | ( | const TTimeIntervalMicroSeconds & | aStart, |
const TTimeIntervalMicroSeconds & | aEnd | |||
) | const |
Sets a time window for video playback.
Parameter | Description |
---|---|
aStart | The start time in milliseconds relative to the start of the video clip. |
aEnd | The end time in milliseconds relative to the start of the video clip. |
Returns: One of the system-wide error codes.
IMPORT_C TInt | Prepare | ( | ) |
Prepares the video clip to be accessed.
A call to this function tells the loaded controller plugin to finalise its configuration and to prepare to start reading the video clip. It is not possible to play the video clip or query any of its properties (e.g. duration, meta data etc.) until the controller plugin has signified the completion of this method by generating a KMMFEventCategoryVideoPrepareComplete event.
IMPORT_C TInt | RefreshFrame | ( | ) | const |
Requests the controller to redraw the current frame.
Returns: One of the system-wide error codes.
IMPORT_C TInt | SetRotation | ( | TVideoRotation | aRotation | ) | const |
Rotates the video image on the screen.
Parameter | Description |
---|---|
aRotation | The desired rotation to apply. |
Returns: One of the system-wide error codes.
IMPORT_C TInt | SetScaleFactor | ( | TReal32 | aWidthPercentage, |
TReal32 | aHeightPercentage, | |||
TBool | aAntiAliasFiltering | |||
) | const |
Scales the video image to a specified percentage of its original size.
Parameter | Description |
---|---|
aWidthPercentage | The percentage (100 = original size) to be used to scale the width of the video image. |
aHeightPercentage | The percentage (100 = original size) to be used to scale the height of the video image. If this is not equal to aWidthPercentage then the image may be distorted. |
aAntiAliasFiltering | True if anti-aliasing filtering should be used. If the plugin does not support this kind of processing, this value will be ignored. |
Returns: One of the system wide error codes.