extern const wchar_t* ALLOW_SWITCH_FALSE;
extern const wchar_t* MIME_TYPE_IMAGE_JPG;
+extern const wchar_t* MIME_TYPE_IMAGE_JPEG;
extern const wchar_t* MIME_TYPE_IMAGE_3GP;
extern const wchar_t* MIME_TYPE_VIDEO_JPG;
extern const wchar_t* MIME_TYPE_VIDEO_3GP;
extern const wchar_t* MIME_TYPE_VIDEO_3GPP;
+extern const wchar_t* MIME_TYPE_VIDEO_MP4;
extern const wchar_t* PARAM_LANGUAGE;
extern const wchar_t* PARAM_COUNTRY;
AppLogDebug("ENTER");
result r = E_SUCCESS;
- if (GetMimeType() == MIME_TYPE_IMAGE_JPG || GetMimeType() == MIME_TYPE_IMAGE_3GP)
+ if (GetMimeType() == MIME_TYPE_IMAGE_JPG || GetMimeType() == MIME_TYPE_IMAGE_3GP || GetMimeType() == MIME_TYPE_IMAGE_JPEG)
{
__appLaunchType = APP_LAUNCH_TYPE_REQUESET;
r = CameraPresentationModel::GetInstance()->SetValue(CURRENT_MODE, CameraPresentationModel::CAMERA_MODE_SNAPSHOT);
AppLogDebug("SetValue Reg Fail[%s]", GetErrorMessage(r));
}
- else if (GetMimeType() == MIME_TYPE_VIDEO_JPG || GetMimeType() == MIME_TYPE_VIDEO_3GP || GetMimeType() == MIME_TYPE_VIDEO_3GPP)
+ else if (GetMimeType() == MIME_TYPE_VIDEO_JPG || GetMimeType() == MIME_TYPE_VIDEO_3GP || GetMimeType() == MIME_TYPE_VIDEO_3GPP
+ || GetMimeType() == MIME_TYPE_VIDEO_MP4)
{
__appLaunchType = APP_LAUNCH_TYPE_REQUESET;
AppLogDebug("ENTER");
result r = E_SUCCESS;
- if (GetMimeType() == MIME_TYPE_IMAGE_JPG || GetMimeType() == MIME_TYPE_IMAGE_3GP)
+ if (GetMimeType() == MIME_TYPE_IMAGE_JPG || GetMimeType() == MIME_TYPE_IMAGE_3GP || GetMimeType() == MIME_TYPE_IMAGE_JPEG)
{
__appLaunchType = APP_LAUNCH_TYPE_REQUESET;
- r = CameraPresentationModel::GetInstance()->SetValue(CURRENT_MODE, CameraPresentationModel::CAMERA_MODE_SNAPSHOT);
- AppLogDebug("SetValue Reg Fail[%s]", GetErrorMessage(r));
+ r = CameraPresentationModel::GetInstance()->SetValue(CURRENT_MODE, CameraPresentationModel::CAMERA_MODE_SNAPSHOT);
+ AppLogDebug("SetValue Reg Fail[%s]", GetErrorMessage(r));
- AppLogDebug("EXIT");
- return E_SUCCESS;
- }
- else if (GetMimeType() == MIME_TYPE_VIDEO_JPG || GetMimeType() == MIME_TYPE_VIDEO_3GP || GetMimeType() == MIME_TYPE_VIDEO_3GPP)
- {
- __appLaunchType = APP_LAUNCH_TYPE_REQUESET;
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+ }
+ else if (GetMimeType() == MIME_TYPE_VIDEO_JPG || GetMimeType() == MIME_TYPE_VIDEO_3GP || GetMimeType() == MIME_TYPE_VIDEO_3GPP
+ || GetMimeType() == MIME_TYPE_VIDEO_MP4)
+ {
+ __appLaunchType = APP_LAUNCH_TYPE_REQUESET;
- r = CameraPresentationModel::GetInstance()->SetValue(CURRENT_MODE, CameraPresentationModel::CAMERA_MODE_RECORD);
- AppLogDebug("SetValue Reg Fail[%s]", GetErrorMessage(r));
+ r = CameraPresentationModel::GetInstance()->SetValue(CURRENT_MODE, CameraPresentationModel::CAMERA_MODE_RECORD);
+ AppLogDebug("SetValue Reg Fail[%s]", GetErrorMessage(r));
- AppLogDebug("EXIT");
- return E_SUCCESS;
- }
- else
- {
- __appLaunchType = APP_LAUNCH_TYPE_REQUESET;
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+ }
+ else
+ {
+ __appLaunchType = APP_LAUNCH_TYPE_REQUESET;
- r = CameraPresentationModel::GetInstance()->SetValue(CURRENT_MODE, CameraPresentationModel::CAMERA_MODE_SNAPSHOT);
- AppLogDebug("SetValue Reg Fail[%s]", GetErrorMessage(r));
+ r = CameraPresentationModel::GetInstance()->SetValue(CURRENT_MODE, CameraPresentationModel::CAMERA_MODE_SNAPSHOT);
+ AppLogDebug("SetValue Reg Fail[%s]", GetErrorMessage(r));
- AppLogDebug("EXIT");
- return E_SUCCESS;
- }
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
}
+}
void
CameraApp::OnLowMemory (void)
const wchar_t* ALLOW_SWITCH_TRUE = L"true";
const wchar_t* ALLOW_SWITCH_FALSE = L"false";
const wchar_t* MIME_TYPE_IMAGE_JPG = L"image/jpg";
+const wchar_t* MIME_TYPE_IMAGE_JPEG = L"image/jpeg";
const wchar_t* MIME_TYPE_IMAGE_3GP = L"image/3gp";
const wchar_t* MIME_TYPE_VIDEO_JPG = L"video/jpg";
const wchar_t* MIME_TYPE_VIDEO_3GP = L"video/3gp";
const wchar_t* MIME_TYPE_VIDEO_3GPP = L"video/3gpp";
+const wchar_t* MIME_TYPE_VIDEO_MP4 = L"video/mp4";
const wchar_t* INPUT_KEY_TYPE = L"type";
const wchar_t* INPUT_TYPE_IMAGE = L"image";
const wchar_t* INPUT_TYPE_VIDEO = L"video";