API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IMEDIA_SETMEDIADATAEX()

Brew Release
Brew MP 1.0.2
See Also
Error Codes IMedia_GetMediaData IMedia_SetMediaParm IMedia_GetMediaParm
Description
This function sets a list of media data and puts the media in Ready state.
Params
po
[]:
Pointer to the IMedia Interface object.
pmdList
[]:
List of media content.
nCount
[]:
Number of elements in pmdList.
Interface
Prototype
  •    int IMedia_SetMediaDataEx(IMedia * po, AEEMediaDataEx * pmdList, int nCount);
    
Return
  • AEE_SUCCESS: Successful. MM_PENDING: Value returned in the registered callback. AEE_EBADPARM: Bad parm. AEE_EBADSTATE: Cannot get parm in the current state. AEE_EUNSUPPORTED: Parm set not supported by the class.
Side Effect
  • None.
Comments
This command allows users to set a list of media sources while allowing the flexibility to enable certain capabilities for each media source. For example, you can specify two MPEG4 files and do playback of video track from one file and audio track from second file (Note: In this case, the underlying media player may do timing syncronization). For a single media source, this command can be used as follows: IMedia_SetMediaDataEx(pMedia, pOneAEEMediaDataEx, 1); which provides following advantages to the user: (1) Specify streaming info. (2) Playback "raw" media data. For example, raw QCP (13k/EVRC) data (i.e., QCP data with no headers, etc.). (3) Specify media specifications (typically for #2, the raw media data playback). For example, if it is PCM playback, then use AEEMediaWaveSpec to specify the PCM info.