The class offers a simple interface to open, play and obtain information from, sampled audio data. The audio data can be supplied either in a file (file-based), as a descriptor (descriptor-based) or as a URL reference.
|
Public Member Functions |
IMPORT_C | ~CDrmPlayerUtility () |
| Destructor.
|
IMPORT_C void | Play () |
| Begins playback of the initialised audio sample at the current volume and priority levels.
|
IMPORT_C void | Stop () |
| Stops playback of the audio sample as soon as is possible.
|
IMPORT_C TInt | Pause () |
| Pauses playback of the audio clip.
|
IMPORT_C void | SetVolume (TInt aVolume) |
| Changes the current playback volume to a specified value.
|
IMPORT_C void | SetRepeats (TInt aRepeatNumberOfTimes, const TTimeIntervalMicroSeconds &aTrailingSilence) |
| Sets the number of times the audio sample should be repeated during the playback operation.
|
IMPORT_C void | SetVolumeRamp (const TTimeIntervalMicroSeconds &aRampDuration) |
| Changes the current playback volume to a specified value.
|
IMPORT_C const TTimeIntervalMicroSeconds & | Duration () |
| Returns the duration of the audio sample in microseconds.
|
IMPORT_C TInt | MaxVolume () |
| Returns an integer representing the maximum volume that the audio clip can support.
|
IMPORT_C void | OpenFileL (const TDesC &aFileName) |
| Opens an audio clip from a file.
|
IMPORT_C void | OpenFileL (const RFile &aFile) |
| Opens an audio clip from a file.
|
IMPORT_C void | OpenFileL (const TMMSource &aSource) |
| Opens an audio clip from a file.
|
IMPORT_C void | OpenDesL (const TDesC8 &aDescriptor) |
| Opens an audio clip from a descriptor.
|
IMPORT_C void | OpenUrlL (const TDesC &aUrl, TInt aIapId=KUseDefaultIap, const TDesC8 &aMimeType=KNullDesC8) |
| Opens an audio clip from a URL.
|
IMPORT_C void | Close () |
| Closes the current audio clip.
|
IMPORT_C TInt | GetPosition (TTimeIntervalMicroSeconds &aPosition) |
| Returns the current playback position in microseconds from the start of the clip.
|
IMPORT_C void | SetPosition (const TTimeIntervalMicroSeconds &aPosition) |
| Returns the current playback position in microseconds from the start of the clip.
|
IMPORT_C TInt | SetPriority (TInt aPriority, TMdaPriorityPreference aPref) |
| Set the priority for playback.
|
IMPORT_C TInt | GetVolume (TInt &aVolume) |
| Returns the current playback volume.
|
IMPORT_C TInt | GetNumberOfMetaDataEntries (TInt &aNumEntries) |
| Gets the number of meta data entries in the current audio clip.
|
IMPORT_C CMMFMetaDataEntry * | GetMetaDataEntryL (TInt aMetaDataIndex) |
| Returns a specified meta data entry from the audio clip.
|
IMPORT_C TInt | SetPlayWindow (const TTimeIntervalMicroSeconds &aStart, const TTimeIntervalMicroSeconds &aEnd) |
| Defines the size of the current playback window.
|
IMPORT_C TInt | ClearPlayWindow () |
| Clears the current playback window.
|
IMPORT_C TInt | SetBalance (TInt aBalance=KMMFBalanceCenter) |
| Sets the current playback balance.
|
IMPORT_C TInt | GetBalance (TInt &aBalance) |
| Returns the current playback balance.
|
IMPORT_C TInt | GetBitRate (TUint &aBitRate) |
| Returns the current bit rate.
|
IMPORT_C void | RegisterForAudioLoadingNotification (MAudioLoadingObserver &aCallback) |
| Allows user to register for audio loading callback.
|
IMPORT_C void | GetAudioLoadingProgressL (TInt &aPercentageProgress) |
| Gets the progress of audio loading.
|
IMPORT_C const CMMFControllerImplementationInformation & | ControllerImplementationInformationL () |
| Returns controller implementation parameters.
|
IMPORT_C TInt | CustomCommandSync (const TMMFMessageDestinationPckg &aDestination, TInt aFunction, const TDesC8 &aDataTo1, const TDesC8 &aDataTo2, TDes8 &aDataFrom) |
| Sends a custom command synchronously to the controller plugin.
|
IMPORT_C TInt | CustomCommandSync (const TMMFMessageDestinationPckg &aDestination, TInt aFunction, const TDesC8 &aDataTo1, const TDesC8 &aDataTo2) |
| Sends a custom command synchronously to the controller plugin.
|
IMPORT_C void | CustomCommandAsync (const TMMFMessageDestinationPckg &aDestination, TInt aFunction, const TDesC8 &aDataTo1, const TDesC8 &aDataTo2, TDes8 &aDataFrom, TRequestStatus &aStatus) |
| Sends a custom command asynchronously to the controller plugin.
|
IMPORT_C void | CustomCommandAsync (const TMMFMessageDestinationPckg &aDestination, TInt aFunction, const TDesC8 &aDataTo1, const TDesC8 &aDataTo2, TRequestStatus &aStatus) |
| Sends a custom command asynchronously to the controller plugin.
|
Static Public Member Functions |
static IMPORT_C CDrmPlayerUtility * | NewL (MDrmAudioPlayerCallback &aCallback, TInt aPriority, TMdaPriorityPreference aPref) |
| Two-phased constructor.
|
static IMPORT_C CDrmPlayerUtility * | NewFilePlayerL (const TDesC &aFileName, MDrmAudioPlayerCallback &aCallback, TInt aPriority, TMdaPriorityPreference aPref) |
| Two-phased constructor.
|
static IMPORT_C CDrmPlayerUtility * | NewDesPlayerL (const TDesC8 &aData, MDrmAudioPlayerCallback &aCallback, TInt aPriority, TMdaPriorityPreference aPref) |
| Two-phased constructor.
|
static IMPORT_C CDrmPlayerUtility * | NewDesPlayerReadOnlyL (const TDesC8 &aData, MDrmAudioPlayerCallback &aCallback, TInt aPriority, TMdaPriorityPreference aPref) |
| Two-phased constructor.
|
Protected Attributes |
CMMFDrmAudioPlayerUtility * | iProperties |
| This member is internal and not intended for use.
|