i know i've been posting about the video recording for treo 650. pardon me. but
i still can't get the video working. please help.
i am using the palmphoto API i download from the pluggedin site. i can call the
camera but even if i start recording the image on the screes not moving. here
is the code for the preview:
Err VideoPreview()
{
/** from the photo lib **/
PalmPhotoHandle photoH = NULL;
PalmPhotoCaptureParamV2 captureParam;
PalmPhotoCaptureResolution SupportedResolutions;
Err err;
InfoMsg("video preview");
// setup callframes
MemSet(&captureParam, sizeof(PalmPhotoCaptureParamV2), 0);
captureParam.fileLocation.fileLocationType = palmPhotoVFSLocation;
captureParam.fileLocation.reserved = 0;
captureParam.fileLocation.file.VFSFile.volumeRef = volRefNum;
StrCopy(captureParam.fileLocation.file.VFSFile.name, "/BlogVideo.mpg");
SupportedResolutions =
PalmPhotoGetSupportedCaptureResolutionsV3(PhotoLibRefNum ,
palmPhotoMediaTypeVideo);
GetDimensions(SupportedResolutions); //get dimendions for suported
resolution
captureParam.imageInfo.width = videoWidth;
captureParam.imageInfo.height = videoHeight;
captureParam.imageInfo.bitsPerPixel = 16;
captureParam.imageInfo.filesize = 0;
captureParam.imageInfo.fileFormat = palmPhotoPreferredVideoFormat;
//palmPhotoMPEG4FileFormat;
captureParam.imageInfo.imageQuality = palmPhotoLowQuality;
//palmPhotoHighestQuality;
captureParam.captureCallback = NULL;
captureParam.userDataP = NULL;
/** capture photo **/
photoH = PalmPhotoCaptureImageV2(PhotoLibRefNum, &captureParam);
//get last error
err = PalmPhotoGetLastErrV2(PhotoLibRefNum);
if ((err) && ( err != palmPhotoLibErrUserCancel ))
{ GenerateErrorMsg(err);
goto Done;
}
else if (err == palmPhotoLibErrUserCancel) // --> user press the
cancel button on the camera
goto Done;
//save filename
//UpdateMMS(p_fileName, tempimageID, "", "", tempimageSubChannelID);
Done:
//InfoMsg("close image");
PalmPhotoCloseImageV2(PhotoLibRefNum, photoH);
//InfoMsg("return to main form");
return err;
}
i get a still image and it does not direct me to the save screen. tnx a lot!
sHe
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/