M3GPParseCallback Class Reference

class M3GPParseCallback

A mixin class to be implemented by the client in order to use the asynchronous frame retrieval APIs provided by the C3GPParse class. The derived class methods are called by C3GPParse when the audio/video frames retrieval completes, successful or not.

Member Functions Documentation

AudioFramesAvailable(TInt, TUint, TUint, TUint)

voidAudioFramesAvailable(TIntaError,
TUintaReturnedFrames,
TUintaTimeStampInMs,
TUintaTimeStampInTimescale
)[pure virtual]

This is called upon the completion of an asynchronous request to retrieve audio frames by the API C3GPParse::ReadAudioFramesAsync.

C3GPParse::ReadAudioFramesAsync

Parameters

TInt aErrorReturns KErrNone on success. Returns KErrAccessDenied if the 3GP Parser is in buffer mode. Otherwise, returns one of the system wide error codes. See synchronous version of C3GPParse::ReadAudioFrames.
TUint aReturnedFramesNumber of the returned frames or 0 if not known.
TUint aTimeStampInMsAudio frame presentation time in milliseconds from the beginning of the audio sequence.
TUint aTimeStampInTimescaleAudio frame presentation time in timescale from the beginning of the audio sequence.

VideoFrameAvailable(TInt, TBool, TUint, TUint)

voidVideoFrameAvailable(TIntaError,
TBoolaKeyFrame,
TUintaTimeStampInMs,
TUintaTimeStampInTimescale
)[pure virtual]

VideoFrameAvailable is called upon completion of an asynchronous request to retrieve video frames by the API C3GPParse::ReadVideoFrameAsync.

C3GPParse::ReadVideoFrameAsync

Parameters

TInt aErrorReturns KErrNone on success. Returns KErrAccessDenied if the 3GP Parser is in buffer mode. Otherwise, returns one of the system wide error codes. See synchronous version of C3GPParse::ReadVideoFrame.
TBool aKeyFrameReturns ETrue if the current frame is a key frame (intra), otherwise the value is EFalse.
TUint aTimeStampInMsVideo frame presentation time in milliseconds from the beginning of the video sequence.
TUint aTimeStampInTimescaleVideo frame presentation time in timescale from the beginning of the video sequence.