CMceFileSource Class Reference
class CMceFileSource : public CMceMediaSource |
Class representing file source in MCE.
CMceFileSource can be used for streaming file contents. The file may contain both audio and video data. If the user wants to stream both media types, the same file source should be attached to audio stream and video stream.
The file may contain also several elements of the same media type (e.g. 3 audio channels) and the user might want to use only some of those. This can be handled by defining index of the file's current media element:
-
Get number of audio media elements within the file (e.g. returns 3)
-
Set current audio element index to be 0
-
Attach the file source to the audioStreamOne (audio element 0 is attached)
-
Set current audio element index to be 2
-
Attach the file source to the audioStreamTwo (audio element 2 is attached)
-
Consequently, file's audio channel 0 would be streamed over the audioStreamOne and channel 2 over the audioStreamTwo. Channel 1 would be ignored.
Enable (continue) and Disable (pause) operations to it are considered to be local, so they are not signalled to remote terminal.
mceclient.lib
Constructor & Destructor Documentation
CMceFileSource()
CMceFileSource | ( | ) | [private] |
~CMceFileSource()
IMPORT_C | ~CMceFileSource | ( | ) | |
Member Functions Documentation
CancelTranscodeL()
IMPORT_C void | CancelTranscodeL | ( | ) | |
ConstructL(CMceManager *, const TFileName &)
Second-phase constructor.
CurrentMediaElement(TMceMediaType)
Gets currently managed media element of the spesified media type.
DisableL()
IMPORT_C void | DisableL | ( | ) | [virtual] |
Disables the source explicitly.
DoCancelTranscodeL()
void | DoCancelTranscodeL | ( | ) | [private] |
DurationL()
Returns the duration of the file in microseconds.
- Pre-condition
- contains audio/video
EnableL()
IMPORT_C void | EnableL | ( | ) | [virtual] |
Enables the source explicitly.
EventReceivedL(TMceEvent &)
FileInfo()
returns details of this file
GetFileInfoL(TBool)
void | GetFileInfoL | ( | TBool | aUseSession = ETrue | ) | [private] |
Parameters
TBool aUseSession = ETrue | |
InitializeL(CMceManager *)
Parameters
CMceManager * aManager | the manager. Ownership is NOT transferred |
MediaElementCountL(TMceMediaType)
Determines how many media elements of the spesified type the file source contains. E.g. audio file may contain N number of audio channels which has to be streamed over N number of audio streams.
NewL(CMceManager &, const TFileName &)
Parameters
CMceManager & aManager | associated MCE manager |
const TFileName & aFileName | name of the file including full path info |
NewLC(CMceManager &, const TFileName &)
Parameters
CMceManager & aManager | associated MCE manager |
const TFileName & aFileName | name of the file including full path info |
PositionL()
Gets the current playback position in microseconds from the start of the file.
- Pre-condition
- contains audio/video
SetCurrentMediaElementL(TMceMediaType, TInt)
Sets currently managed media element of the spesified media type. The setting is effective when the file source is attached to media stream of the spesified type. Current media element can be defined for each media type the file contains. By default, media element 0 of each media type is used.
- leave
- KErrArgument if media element spesified by input parameters does not exist
Parameters
TMceMediaType aType | the type of media |
TInt aIndex | new index of the current media element |
SetFastForwardL(TBool)
IMPORT_C void | SetFastForwardL | ( | TBool | aUseFFWD | ) | |
Sets fast forward on/off.
- Pre-condition
- contains video
Parameters
TBool aUseFFWD | ETrue if fast forward is enabled; otherwise EFalse |
SetFastRewindL(TBool)
IMPORT_C void | SetFastRewindL | ( | TBool | aUseFRWD | ) | |
Sets fast rewind on/off.
- Pre-condition
- contains video
Parameters
TBool aUseFRWD | ETrue if fast rewind is enabled; otherwise EFalse |
SetFileInfoL()
void | SetFileInfoL | ( | ) | [private] |
SetPositionL(const TTimeIntervalMicroSeconds &)
Sets the position within the file from where to start playback.
- Pre-condition
- IsEnabled() == EFalse and contains audio/video
StreamAddedL(CMceMediaStream &)
Stream has been added to session
SupportedAudio()
const TDesC8 & | SupportedAudio | ( | ) | |
returns supported audio codec of this file
SupportedVideo()
const TDesC8 & | SupportedVideo | ( | ) | |
returns supported video codec of this file
SynchronizeWithStreamL()
void | SynchronizeWithStreamL | ( | ) | [private] |
TranscodeL(const TFileName &)
IMPORT_C void | TranscodeL | ( | const TFileName & | aFileName | ) | |
Parameters
const TFileName & aFileName | Name of the transcoding output file. |
TranscodingCompletedL(TMceEvent &)
void | TranscodingCompletedL | ( | TMceEvent & | aEvent | ) | [private] |
TranscodingProgressL()
IMPORT_C TInt | TranscodingProgressL | ( | ) | const |
UpdateL(const TFileName &)
IMPORT_C void | UpdateL | ( | const TFileName & | aFileName | ) | |
Updates file for the source.
Parameters
const TFileName & aFileName | name of the file including full path info |
UpdateState(CMceMediaStream::TState)
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.