Video recording issue on Motorola V9m | developer.brewmp.com Video recording issue on Motorola V9m | developer.brewmp.com

Developer

Video recording issue on Motorola V9m

Forums:

Hi all,
I tried to record movie clip using Moto V9M but the return value of "ICAMERA_IsMovie" is 20 (EUNSUPPORTED). does that mean my device doesnot support video recording???? or i am doing something wrong? :confused:
I have pasted my code below ...
please help me with this issue, its urgent....
Thanks,

boolean * pbSupport = (boolean *)MALLOC(sizeof(boolean));
nErr = ICAMERA_IsMovie(m_pICamera, pbSupport);
if (nErr != SUCCESS)
{
DBGPRINTF("Movie capability Check Failed %d", nErr);

if (*pbSupport == TRUE)
DBGPRINTF("Movie Recording Supported");
else
DBGPRINTF("Movie Recording not Supported");
DBGPRINTF("*pbSupport = %d", *pbSupport);

AEEMediaData pmd ;
pmd.pData = (void*)"me.mp4";
pmd.clsData = MMD_FILE_NAME;
pmd.dwSize = 0;
nRet = ICAMERA_SetMediaData(m_pICamera, &pmd, CAM_FILE_FORMAT_MPG4);
if (nRet == SUCCESS)
{
nRet = ICAMERA_SetVideoEncode(m_pICamera,AEECLSID_MEDIAMPEG4, 0);
DBGPRINTF("ICAMERA_SetVideoEncode =%d", nRet);
//ICAMERA_SetAudioEncode(m_pICamera, AEECLSID_MEDIAAAC, 0);
DBGPRINTF("ICAMERA_SetAudioEncode = %d", nRet);
nRet = ICAMERA_RecordMovie(m_pICamera);
DBGPRINTF("Movie Recorded");
if (nRet != SUCCESS)
{
DBGPRINTF("Record Movie Failed");

else
{
DBGPRINTF("ICAMERA_SetMediaData failed");

Hey just ignore that error or better dont call ICAMERA_IsMovie.
V9m supports video recording.

Hey just ignore that error or better dont call ICAMERA_IsMovie.
V9m supports video recording.