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

Developer

Forums

Forums:

What values are set in the pme->m_md structure?

The values are as follows. Pls suggest
&pme->m_md 0x0270a5e0
clsData 0
pData 0x00000000
dwSize 0

The values are as follows. Pls suggest
&pme->m_md 0x0270a5e0
clsData 0
pData 0x00000000
dwSize 0

I could able to do it with the following piece of modified code. My intention is to do it using MMD_ISOURCE .I woul dbe doing it now.
Would post back if i need anymore help/
int nRet;
char *flname = "C:\Program Files\BREW 3.1.5\sdk\examples\mediaplayer\media\44khz32kbps.mp3";
if (eCode == EVT_CREATEMEDIA)
/**********/
{
pme->m_md.clsData = MMD_FILE_NAME;
pme->m_md.pData = (void *) flname;
pme->m_md.dwSize = 0;
/*******************/
nRet = AEEMediaUtil_CreateMedia(pme->m_pIShell, &pme->m_md, &pme->m_pMedia);}
else
{
nRet = ISHELL_CreateInstance(pme->m_pIShell, AEECLSID_MEDIAQCP, (void **)&pme->m_pMedia);
if (nRet == SUCCESS)
nRet = IMEDIA_SetMediaData(pme->m_pMedia, &pme->m_md);
}

I could able to do it with the following piece of modified code. My intention is to do it using MMD_ISOURCE .I woul dbe doing it now.
Would post back if i need anymore help/
int nRet;
char *flname = "C:\Program Files\BREW 3.1.5\sdk\examples\mediaplayer\media\44khz32kbps.mp3";
if (eCode == EVT_CREATEMEDIA)
/**********/
{
pme->m_md.clsData = MMD_FILE_NAME;
pme->m_md.pData = (void *) flname;
pme->m_md.dwSize = 0;
/*******************/
nRet = AEEMediaUtil_CreateMedia(pme->m_pIShell, &pme->m_md, &pme->m_pMedia);}
else
{
nRet = ISHELL_CreateInstance(pme->m_pIShell, AEECLSID_MEDIAQCP, (void **)&pme->m_pMedia);
if (nRet == SUCCESS)
nRet = IMEDIA_SetMediaData(pme->m_pMedia, &pme->m_md);
}

Return code 14 is EBADPARM...(Please see IMEDIAUTIL_CreateMedia() in BREW API Reference document. AEEMediaUtil_CreateMedia will be depricated soon).
Error codes are given in AEEError.h in "\sdk\inc" directory.
I think you need to specify the file name in media data before calling AEEMediaUtil_CreateMedia(). Rightnow its NULL which means the SDK detects it as a bad input parameter.
Which files are you trying to playback? If you are trying to play .qcp, .wav, or .pmd you might want to install the latest BREW CMX Extension (also known as QAudioFX extension for BREW SDK) which is available on brew extranet.
https://brewx.qualcomm.com/brew/sdk/download.jsp?page=dx/en/brew31/ex/tl...

Return code 14 is EBADPARM...(Please see IMEDIAUTIL_CreateMedia() in BREW API Reference document. AEEMediaUtil_CreateMedia will be depricated soon).
Error codes are given in AEEError.h in "\sdk\inc" directory.
I think you need to specify the file name in media data before calling AEEMediaUtil_CreateMedia(). Rightnow its NULL which means the SDK detects it as a bad input parameter.
Which files are you trying to playback? If you are trying to play .qcp, .wav, or .pmd you might want to install the latest BREW CMX Extension (also known as QAudioFX extension for BREW SDK) which is available on brew extranet.
https://brewx.qualcomm.com/brew/sdk/download.jsp?page=dx/en/brew31/ex/tl...

FYI AEEMediaUtil_CreateMedia() will be depricated from for future releases of SDK so its better use IMEDIAUTIL_CreateMedia(). (Please see the comments in AEEMediaUtil.h in the sdk/inc directory)
Streaming is not supported on the current version of BREW CMX Player extension.
So MMD_ISOURCE may not work rightnow on simulator!
Which files are you trying to playback?
If you are trying to play .qcp, .wav, or .pmd you might want to install the latest BREW CMX Extension (also known as QAudioFX extension for BREW SDK) whichis available on brew extranet.
https://brewx.qualcomm.com/brew/sdk/download.jsp?page=dx/en/brew31/ex/tl...
Please keep checking this site for the updated versions (which will have the Streaming support soon).

FYI AEEMediaUtil_CreateMedia() will be depricated from for future releases of SDK so its better use IMEDIAUTIL_CreateMedia(). (Please see the comments in AEEMediaUtil.h in the sdk/inc directory)
Streaming is not supported on the current version of BREW CMX Player extension.
So MMD_ISOURCE may not work rightnow on simulator!
Which files are you trying to playback?
If you are trying to play .qcp, .wav, or .pmd you might want to install the latest BREW CMX Extension (also known as QAudioFX extension for BREW SDK) whichis available on brew extranet.
https://brewx.qualcomm.com/brew/sdk/download.jsp?page=dx/en/brew31/ex/tl...
Please keep checking this site for the updated versions (which will have the Streaming support soon).

Hey thanks.
I tried it & it worked. I used following piece of code before calling CreateMedia function
int nRet;
char *flname = "C:\Program Files\BREW 3.1.5\sdk\examples\mediaplayer\media\44khz32kbps.mp3";
pme->m_md.clsData = MMD_FILE_NAME;
pme->m_md.pData = (void *) flname;
pme->m_md.dwSize = 0;
nRet = AEEMediaUtil_CreateMedia(pme->m_pIShell, &pme->m_md, &pme->m_pMedia);
I am actually building Internet Radio Application for which ineed to run MM player from ISource so iam in process of achieving the same now.
Thanks for the help
Regards,
Smita

Hey thanks.
I tried it & it worked. I used following piece of code before calling CreateMedia function
int nRet;
char *flname = "C:\Program Files\BREW 3.1.5\sdk\examples\mediaplayer\media\44khz32kbps.mp3";
pme->m_md.clsData = MMD_FILE_NAME;
pme->m_md.pData = (void *) flname;
pme->m_md.dwSize = 0;
nRet = AEEMediaUtil_CreateMedia(pme->m_pIShell, &pme->m_md, &pme->m_pMedia);
I am actually building Internet Radio Application for which ineed to run MM player from ISource so iam in process of achieving the same now.
Thanks for the help
Regards,
Smita

Streaming is not supported rightnow on BREW Simulator! The next release of BREW CMX extension will have this support soon!

Streaming is not supported rightnow on BREW Simulator! The next release of BREW CMX extension will have this support soon!

U mean to say we can not audiostream the data from net & play the radio station music on the phone using ISource ?
Will the following piece of code work in Simulator ?
if (SUCCESS != ISOURCE_QueryInterface(pSource, AEECLSID_PEEK, (void **)&pPeek) || !pPeek)
return MM_EBADMEDIADATA;
It already is giving me the error ECLASSNOTSUPPORT (Specified class unsupported) .
PLs suggest.

U mean to say we can not audiostream the data from net & play the radio station music on the phone using ISource ?
Will the following piece of code work in Simulator ?
if (SUCCESS != ISOURCE_QueryInterface(pSource, AEECLSID_PEEK, (void **)&pPeek) || !pPeek)
return MM_EBADMEDIADATA;
It already is giving me the error ECLASSNOTSUPPORT (Specified class unsupported) .
PLs suggest.

Prashant
We will be playing only mp3 music but as you have pointed out that streaming is not supported then i can not use the ISource interface for the same.
As i am building Internet radio app it was essential for me to use ISource but then now i need to find out the other ways to do the same.
Probably i would store the live audio stream data from radio station in the buffer & then play back from the buffer or file. Thats the only thing which i can do it.
Any suggesitons ??

Prashant
We will be playing only mp3 music but as you have pointed out that streaming is not supported then i can not use the ISource interface for the same.
As i am building Internet radio app it was essential for me to use ISource but then now i need to find out the other ways to do the same.
Probably i would store the live audio stream data from radio station in the buffer & then play back from the buffer or file. Thats the only thing which i can do it.
Any suggesitons ??