Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi!

I want to use the IMEDIA_GetMediaSpec macro for retrieving meta data, but it seems like it is missing from the IMEDIA header files for v3.1.3.

Is it possible to specify it by oneself? What should it look like?

Regards,
Johan

The IMEDIA_GetMediaSpec macro is only valid when used with MPEG4. You will need to download the IMEDIAMPEG4 extension from the extranet [which will have the definition for IMEDIA_GetMediaSpec in AEEMediaMPEG4.h].
Currently, there is no support for getting the media spec information for other formats. On, IMEDIA_Play(), you will get MM_STATUS_MEDIA_SPEC and the pCmdData pointer will point to an AEEMedia*Spec object (MIDI, MP3, WAVE, SVF). However, this is currently a zero filled struct.

The IMEDIA_GetMediaSpec macro is only valid when used with MPEG4. You will need to download the IMEDIAMPEG4 extension from the extranet [which will have the definition for IMEDIA_GetMediaSpec in AEEMediaMPEG4.h].
Currently, there is no support for getting the media spec information for other formats. On, IMEDIA_Play(), you will get MM_STATUS_MEDIA_SPEC and the pCmdData pointer will point to an AEEMedia*Spec object (MIDI, MP3, WAVE, SVF). However, this is currently a zero filled struct.

Hi!
aiyengar wrote:The IMEDIA_GetMediaSpec macro is only valid when used with MPEG4. You will need to download the IMEDIAMPEG4 extension from the extranet [which will have the definition for IMEDIA_GetMediaSpec in AEEMediaMPEG4.h].
I'm sorry, but I can't find the MPEG4 extension on the extranet... Do you know where it is?
Regards,
Johan

Hi!
aiyengar wrote:The IMEDIA_GetMediaSpec macro is only valid when used with MPEG4. You will need to download the IMEDIAMPEG4 extension from the extranet [which will have the definition for IMEDIA_GetMediaSpec in AEEMediaMPEG4.h].
I'm sorry, but I can't find the MPEG4 extension on the extranet... Do you know where it is?
Regards,
Johan

Hey Johan!
Long time, no see. Did you guys ever get this to work? One of my co-workers has the IMEDIAMPEG4 extension but hasn't been able to get it working. He is including the header file in the code. Is the header file the only required file, or are mod and mif files also necessary? There's only a dll.
"When I try to use IMEDIA_GetMediaSpec to get media info, it always returns NULL.
nResult = IMEDIA_GetMediaSpec(pIMedia, &pMediaParser->pSpec, &pMediaParser->nSize);
nResult is always EBADSTATE. I tried to call GetMediaSpec right after SetMediaData or right after receiving MM_STATUS_DONE (after I pressed STOP), but neither works."
The BREW API reference says that SetMediaData and Stop put IMedia into the Ready state, and the MPEG4 reference says that it expects IMedia to be in the Ready state.
Here is a snippet from the API reference:
IMEDIA_GetMediaSpec()
Description:
This macro is used to get a pointer to a specific media specification.
Prototype:
int IMEDIA_GetMediaSpec(IMedia * p, int32 * ppSpec, int32 * pSize);
Parameters:
p [in]: Pointer to the IMedia Interface object
ppSpec [in]: Pointer to an integer to store spec info
pSize [in]: Pointer to an integer to store the size in
Return Value:
SUCCESS: Successful.
EBADSTATE: Error - IMedia is not in Ready state.
Thank you

Hey Johan!
Long time, no see. Did you guys ever get this to work? One of my co-workers has the IMEDIAMPEG4 extension but hasn't been able to get it working. He is including the header file in the code. Is the header file the only required file, or are mod and mif files also necessary? There's only a dll.
"When I try to use IMEDIA_GetMediaSpec to get media info, it always returns NULL.
nResult = IMEDIA_GetMediaSpec(pIMedia, &pMediaParser->pSpec, &pMediaParser->nSize);
nResult is always EBADSTATE. I tried to call GetMediaSpec right after SetMediaData or right after receiving MM_STATUS_DONE (after I pressed STOP), but neither works."
The BREW API reference says that SetMediaData and Stop put IMedia into the Ready state, and the MPEG4 reference says that it expects IMedia to be in the Ready state.
Here is a snippet from the API reference:
IMEDIA_GetMediaSpec()
Description:
This macro is used to get a pointer to a specific media specification.
Prototype:
int IMEDIA_GetMediaSpec(IMedia * p, int32 * ppSpec, int32 * pSize);
Parameters:
p [in]: Pointer to the IMedia Interface object
ppSpec [in]: Pointer to an integer to store spec info
pSize [in]: Pointer to an integer to store the size in
Return Value:
SUCCESS: Successful.
EBADSTATE: Error - IMedia is not in Ready state.
Thank you

aiyengar wrote:
Currently, there is no support for getting the media spec information for other formats. On, IMEDIA_Play(), you will get MM_STATUS_MEDIA_SPEC and the pCmdData pointer will point to an AEEMedia*Spec object (MIDI, MP3, WAVE, SVF). However, this is currently a zero filled struct.
Seems like this post above is out-of-date but I'm wondering is it possible to get media spec information yet? I have successfully created custom media player to play MP3 files, but have no success to get any information about MP3 tags with MM_STATUS_MEDIA_SPEC command. Is this information still not available using BREW API or I do something wrong? I tried to find any information about this using forum/internet search - no success. I can provide some code snippets if this is necessary.
Thanks in advice for any answer.

aiyengar wrote:
Currently, there is no support for getting the media spec information for other formats. On, IMEDIA_Play(), you will get MM_STATUS_MEDIA_SPEC and the pCmdData pointer will point to an AEEMedia*Spec object (MIDI, MP3, WAVE, SVF). However, this is currently a zero filled struct.
Seems like this post above is out-of-date but I'm wondering is it possible to get media spec information yet? I have successfully created custom media player to play MP3 files, but have no success to get any information about MP3 tags with MM_STATUS_MEDIA_SPEC command. Is this information still not available using BREW API or I do something wrong? I tried to find any information about this using forum/internet search - no success. I can provide some code snippets if this is necessary.
Thanks in advice for any answer.