__pProgress->Show();
}
+result
+VideoRecorderForm::ConvertRecorderErrorToError(Tizen::Media::RecorderErrorReason r)
+{
+ result res = E_SUCCESS;
+ switch (r)
+ {
+ case RECORDER_ERROR_OUT_OF_STORAGE:
+ //fall through
+ case RECORDER_ERROR_STORAGE_FAILED:
+ res = E_STORAGE_FULL;
+ break;
+ default:
+ break;
+ }
+
+ return res;
+}
+
void
VideoRecorderForm::OnVideoRecorderErrorOccurred(Tizen::Media::RecorderErrorReason r)
{
AppLog("OnVideoRecorderErrorOccurred");
+ result res = E_SUCCESS;
+
+ res = ConvertRecorderErrorToError(r);
+ if (res == E_STORAGE_FULL)
+ {
+ __cameraError = CAMERA_ERROR_OUT_OF_MEMORY;
+ __pCamera->StopPreview();
+ ShowErrorResult(res, METHOD_FILE_LINENO);
+ return;
+ }
__pVideoRecorder->Close();
__pTimer->Cancel();
bool ConvertPixelFormatToString(Tizen::Graphics::PixelFormat &pixFormat, String& strString);
bool IsBatteryLevelLow(void);
+ result ConvertRecorderErrorToError(Tizen::Media::RecorderErrorReason r);
private:
//Do not change the order of the e-nums, if a new e-num is to be added add it at the end