/**
@addtogroup COMMON
@{
- * @file mm_error.h
+ * @file mm_error.h
* @brief This file defines error codes for multimedia framework.
* @version 1.0
*
* This file defines error codes for multimedia framework.
*/
-#define MM_ERROR_NONE 0x00000000 /**< No Error */
-#define MM_ERROR_CLASS 0x80000000 /**< Definition of number describing error group */
-#define MM_ERROR_COMMON_CLASS 0x80000100 /**< Category for describing common error group */
-#define MM_ERROR_SOUND_CLASS 0x80000200 /**< Category for describing sound error group */
-#define MM_ERROR_RADIO_CLASS 0x80000300 /**< Category for describing radio error group */
-#define MM_ERROR_PLAYER_CLASS 0x80000400 /**< Category for describing player error group */
-#define MM_ERROR_FILE_CLASS 0x80000600 /**< Category for describing file error group */
-#define MM_ERROR_CAMCORDER_CLASS 0x80000800 /**< Category for describing camcorder error group */
-#define MM_ERROR_IMAGE_CLASS 0x80000a00 /**< Category for describing image error group */
-#define MM_ERROR_MGR_CLASS 0x80000c00 /**< Category for describing message error group */
-#define MM_ERROR_POLICY_CLASS 0x80000b00 /**< Category for Policy */
-#define MM_ERROR_NOT_IMPLEMENTED 0x80000d00 /**< Error message for not implemented functions */
+#define MM_ERROR_NONE 0x00000000 /**< No Error */
+#define MM_ERROR_CLASS 0x80000000 /**< Definition of number describing error group */
+#define MM_ERROR_COMMON_CLASS 0x80000100 /**< Category for describing common error group */
+#define MM_ERROR_SOUND_CLASS 0x80000200 /**< Category for describing sound error group */
+#define MM_ERROR_RADIO_CLASS 0x80000300 /**< Category for describing radio error group */
+#define MM_ERROR_PLAYER_CLASS 0x80000400 /**< Category for describing player error group */
+#define MM_ERROR_FILE_CLASS 0x80000600 /**< Category for describing file error group */
+#define MM_ERROR_CAMCORDER_CLASS 0x80000800 /**< Category for describing camcorder error group */
+#define MM_ERROR_IMAGE_CLASS 0x80000a00 /**< Category for describing image error group */
+#define MM_ERROR_MGR_CLASS 0x80000c00 /**< Category for describing message error group */
+#define MM_ERROR_POLICY_CLASS 0x80000b00 /**< Category for Policy */
+#define MM_ERROR_NOT_IMPLEMENTED 0x80000d00 /**< Error message for not implemented functions */
/*
MM_ERROR_CLASS
*/
-#define MM_ERROR_UNKNOWN (MM_ERROR_CLASS | 0x00) /**< Unclassified error */
-#define MM_ERROR_INVALID_ARGUMENT (MM_ERROR_CLASS | 0x01) /**< Invalid argument */
-#define MM_ERROR_OUT_OF_MEMORY (MM_ERROR_CLASS | 0x02) /**< Out of memory */
-#define MM_ERROR_OUT_OF_STORAGE (MM_ERROR_CLASS | 0x03) /**< Out of storage */
-#define MM_ERROR_INVALID_HANDLE (MM_ERROR_CLASS | 0x04) /**< Invalid handle */
-#define MM_ERROR_FILE_NOT_FOUND (MM_ERROR_CLASS | 0x05) /**< Cannot find file */
-#define MM_ERROR_FILE_READ (MM_ERROR_CLASS | 0x06) /**< Fail to read data from file */
-#define MM_ERROR_FILE_WRITE (MM_ERROR_CLASS | 0x07) /**< Fail to write data to file */
-#define MM_ERROR_END_OF_FILE (MM_ERROR_CLASS | 0x08) /**< End of file */
-#define MM_ERROR_NOT_SUPPORT_API (MM_ERROR_CLASS | 0x09) /**< Not supported API*/
+#define MM_ERROR_UNKNOWN (MM_ERROR_CLASS | 0x00) /**< Unclassified error */
+#define MM_ERROR_INVALID_ARGUMENT (MM_ERROR_CLASS | 0x01) /**< Invalid argument */
+#define MM_ERROR_OUT_OF_MEMORY (MM_ERROR_CLASS | 0x02) /**< Out of memory */
+#define MM_ERROR_OUT_OF_STORAGE (MM_ERROR_CLASS | 0x03) /**< Out of storage */
+#define MM_ERROR_INVALID_HANDLE (MM_ERROR_CLASS | 0x04) /**< Invalid handle */
+#define MM_ERROR_FILE_NOT_FOUND (MM_ERROR_CLASS | 0x05) /**< Cannot find file */
+#define MM_ERROR_FILE_READ (MM_ERROR_CLASS | 0x06) /**< Fail to read data from file */
+#define MM_ERROR_FILE_WRITE (MM_ERROR_CLASS | 0x07) /**< Fail to write data to file */
+#define MM_ERROR_END_OF_FILE (MM_ERROR_CLASS | 0x08) /**< End of file */
+#define MM_ERROR_NOT_SUPPORT_API (MM_ERROR_CLASS | 0x09) /**< Not supported API*/
/*
MM_ERROR_COMMON_CLASS
*/
-#define MM_ERROR_COMMON_INVALID_ARGUMENT (MM_ERROR_COMMON_CLASS | 1) /**< Invalid argument */
-#define MM_ERROR_COMMON_NO_FREE_SPACE (MM_ERROR_COMMON_CLASS | 2) /**< Out of storage */
-#define MM_ERROR_COMMON_OUT_OF_MEMORY (MM_ERROR_COMMON_CLASS | 3) /**< Out of memory */
-#define MM_ERROR_COMMON_UNKNOWN (MM_ERROR_COMMON_CLASS | 4) /**< Unknown error */
-#define MM_ERROR_COMMON_INVALID_ATTRTYPE (MM_ERROR_COMMON_CLASS | 5) /**< Invalid argument */
-#define MM_ERROR_COMMON_INVALID_PERMISSION (MM_ERROR_COMMON_CLASS | 6) /**< Invalid permission */
-#define MM_ERROR_COMMON_OUT_OF_ARRAY (MM_ERROR_COMMON_CLASS | 7) /**< Out of array */
-#define MM_ERROR_COMMON_OUT_OF_RANGE (MM_ERROR_COMMON_CLASS | 8) /**< Out of value range*/
-#define MM_ERROR_COMMON_ATTR_NOT_EXIST (MM_ERROR_COMMON_CLASS | 9) /**< Attribute doesn't exist. */
+#define MM_ERROR_COMMON_INVALID_ARGUMENT (MM_ERROR_COMMON_CLASS | 1) /**< Invalid argument */
+#define MM_ERROR_COMMON_NO_FREE_SPACE (MM_ERROR_COMMON_CLASS | 2) /**< Out of storage */
+#define MM_ERROR_COMMON_OUT_OF_MEMORY (MM_ERROR_COMMON_CLASS | 3) /**< Out of memory */
+#define MM_ERROR_COMMON_UNKNOWN (MM_ERROR_COMMON_CLASS | 4) /**< Unknown error */
+#define MM_ERROR_COMMON_INVALID_ATTRTYPE (MM_ERROR_COMMON_CLASS | 5) /**< Invalid argument */
+#define MM_ERROR_COMMON_INVALID_PERMISSION (MM_ERROR_COMMON_CLASS | 6) /**< Invalid permission */
+#define MM_ERROR_COMMON_OUT_OF_ARRAY (MM_ERROR_COMMON_CLASS | 7) /**< Out of array */
+#define MM_ERROR_COMMON_OUT_OF_RANGE (MM_ERROR_COMMON_CLASS | 8) /**< Out of value range*/
+#define MM_ERROR_COMMON_ATTR_NOT_EXIST (MM_ERROR_COMMON_CLASS | 9) /**< Attribute doesn't exist. */
/*
* MM_ERROR_SOUND_CLASS
*/
-#define MM_ERROR_SOUND_NOT_INITIALIZED (MM_ERROR_SOUND_CLASS | 0x01) /**< Not initialized player */
-#define MM_ERROR_SOUND_CODEC_NOT_FOUND (MM_ERROR_SOUND_CLASS | 0x02) /**< Not supported format */
-#define MM_ERROR_SOUND_DECODE (MM_ERROR_SOUND_CLASS | 0x03) /**< Error while decoding data */
-#define MM_ERROR_SOUND_NO_FREE_SPACE (MM_ERROR_SOUND_CLASS | 0x04) /**< Out of storage */
-#define MM_ERROR_SOUND_FILE_NOT_FOUND (MM_ERROR_SOUND_CLASS | 0x05) /**< Cannot find file */
-#define MM_ERROR_SOUND_STREAM_NOT_FOUND (MM_ERROR_SOUND_CLASS | 0x06) /**< Cannot find stream */
-#define MM_ERROR_SOUND_END_OF_STREAM (MM_ERROR_SOUND_CLASS | 0x07) /**< End of stream */
-#define MM_ERROR_SOUND_SEEK (MM_ERROR_SOUND_CLASS | 0x08) /**< Seek related errors */
+#define MM_ERROR_SOUND_NOT_INITIALIZED (MM_ERROR_SOUND_CLASS | 0x01) /**< Not initialized player */
+#define MM_ERROR_SOUND_CODEC_NOT_FOUND (MM_ERROR_SOUND_CLASS | 0x02) /**< Not supported format */
+#define MM_ERROR_SOUND_DECODE (MM_ERROR_SOUND_CLASS | 0x03) /**< Error while decoding data */
+#define MM_ERROR_SOUND_NO_FREE_SPACE (MM_ERROR_SOUND_CLASS | 0x04) /**< Out of storage */
+#define MM_ERROR_SOUND_FILE_NOT_FOUND (MM_ERROR_SOUND_CLASS | 0x05) /**< Cannot find file */
+#define MM_ERROR_SOUND_STREAM_NOT_FOUND (MM_ERROR_SOUND_CLASS | 0x06) /**< Cannot find stream */
+#define MM_ERROR_SOUND_END_OF_STREAM (MM_ERROR_SOUND_CLASS | 0x07) /**< End of stream */
+#define MM_ERROR_SOUND_SEEK (MM_ERROR_SOUND_CLASS | 0x08) /**< Seek related errors */
#define MM_ERROR_SOUND_INVALID_POINTER (MM_ERROR_SOUND_CLASS | 0x09) /**< Invalid pointer */
-#define MM_ERROR_SOUND_NOT_SUPPORTED_OPERATION (MM_ERROR_SOUND_CLASS | 0x10) /**< Not supported operation */
+#define MM_ERROR_SOUND_NOT_SUPPORTED_OPERATION (MM_ERROR_SOUND_CLASS | 0x10) /**< Not supported operation */
-#define MM_ERROR_SOUND_INVALID_FILE (MM_ERROR_SOUND_CLASS | 0x21) /**< Invalid file */
-#define MM_ERROR_SOUND_INVALID_PATH (MM_ERROR_SOUND_CLASS | 0x22) /**< Invalid path */
-#define MM_ERROR_SOUND_INVALID_VOLUME (MM_ERROR_SOUND_CLASS | 0x23) /**< Invalid volume */
-#define MM_ERROR_SOUND_UNSUPPORTED_MEDIA_TYPE (MM_ERROR_SOUND_CLASS | 0x24) /**< Invalid media type */
-#define MM_ERROR_SOUND_INTERNAL (MM_ERROR_SOUND_CLASS | 0x25) /**< Internal errors */
-#define MM_ERROR_SOUND_INVALID_STATE (MM_ERROR_SOUND_CLASS | 0x26) /**< Invalid state */
+#define MM_ERROR_SOUND_INVALID_FILE (MM_ERROR_SOUND_CLASS | 0x21) /**< Invalid file */
+#define MM_ERROR_SOUND_INVALID_PATH (MM_ERROR_SOUND_CLASS | 0x22) /**< Invalid path */
+#define MM_ERROR_SOUND_INVALID_VOLUME (MM_ERROR_SOUND_CLASS | 0x23) /**< Invalid volume */
+#define MM_ERROR_SOUND_UNSUPPORTED_MEDIA_TYPE (MM_ERROR_SOUND_CLASS | 0x24) /**< Invalid media type */
+#define MM_ERROR_SOUND_INTERNAL (MM_ERROR_SOUND_CLASS | 0x25) /**< Internal errors */
+#define MM_ERROR_SOUND_INVALID_STATE (MM_ERROR_SOUND_CLASS | 0x26) /**< Invalid state */
-#define MM_ERROR_SOUND_VOLUME_NO_INSTANCE (MM_ERROR_SOUND_CLASS | 0x31) /**< No active instance */
-#define MM_ERROR_SOUND_VOLUME_CAPTURE_ONLY (MM_ERROR_SOUND_CLASS | 0x32) /**< Capture instance only */
+#define MM_ERROR_SOUND_VOLUME_NO_INSTANCE (MM_ERROR_SOUND_CLASS | 0x31) /**< No active instance */
+#define MM_ERROR_SOUND_VOLUME_CAPTURE_ONLY (MM_ERROR_SOUND_CLASS | 0x32) /**< Capture instance only */
-#define MM_ERROR_SOUND_DEVICE_NOT_OPENED (MM_ERROR_SOUND_CLASS | 0x41) /**< Cannot open sound device */
-#define MM_ERROR_SOUND_DEVICE_INVALID_FORMAT (MM_ERROR_SOUND_CLASS | 0x42) /**< Invalid file format */
-#define MM_ERROR_SOUND_DEVICE_INVALID_CHANNEL (MM_ERROR_SOUND_CLASS | 0x43) /**< Invalid channel type */
-#define MM_ERROR_SOUND_DEVICE_INVALID_SAMPLERATE (MM_ERROR_SOUND_CLASS | 0x44) /**< Invalid samplerate */
-#define MM_ERROR_SOUND_DEVICE_INVALID_MODE (MM_ERROR_SOUND_CLASS | 0x45) /**< Invalid mode */
-#define MM_ERROR_SOUND_DEVICE_INVALID_VOLUME (MM_ERROR_SOUND_CLASS | 0x46) /**< Invalid volume */
+#define MM_ERROR_SOUND_DEVICE_NOT_OPENED (MM_ERROR_SOUND_CLASS | 0x41) /**< Cannot open sound device */
+#define MM_ERROR_SOUND_DEVICE_INVALID_FORMAT (MM_ERROR_SOUND_CLASS | 0x42) /**< Invalid file format */
+#define MM_ERROR_SOUND_DEVICE_INVALID_CHANNEL (MM_ERROR_SOUND_CLASS | 0x43) /**< Invalid channel type */
+#define MM_ERROR_SOUND_DEVICE_INVALID_SAMPLERATE (MM_ERROR_SOUND_CLASS | 0x44) /**< Invalid samplerate */
+#define MM_ERROR_SOUND_DEVICE_INVALID_MODE (MM_ERROR_SOUND_CLASS | 0x45) /**< Invalid mode */
+#define MM_ERROR_SOUND_DEVICE_INVALID_VOLUME (MM_ERROR_SOUND_CLASS | 0x46) /**< Invalid volume */
-#define MM_ERROR_SOUND_UNSUPPORTED_FORMAT MM_ERROR_SOUND_UNSUPPORTED_MEDIA_TYPE /**< Not supported media format */
+#define MM_ERROR_SOUND_UNSUPPORTED_FORMAT MM_ERROR_SOUND_UNSUPPORTED_MEDIA_TYPE /**< Not supported media format */
/*
MM_ERROR_RADIO_CLASS
*/
-#define MM_ERROR_RADIO_NOT_INITIALIZED (MM_ERROR_RADIO_CLASS | 0x01) /**< Radio instance is not initialized */
-#define MM_ERROR_RADIO_NO_FREE_SPACE (MM_ERROR_RADIO_CLASS | 0x02) /**< Not enough memory */
-#define MM_ERROR_RADIO_INTERNAL (MM_ERROR_RADIO_CLASS | 0x03) /**< Radio internal error */
-#define MM_ERROR_RADIO_RESPONSE_TIMEOUT (MM_ERROR_RADIO_CLASS | 0x04) /**< Response timeout error */
-#define MM_ERROR_RADIO_INVALID_STATE (MM_ERROR_RADIO_CLASS | 0x05) /**< Radio is in invalid state */
-#define MM_ERROR_RADIO_NO_OP (MM_ERROR_RADIO_CLASS | 0x06) /**< Radio is in desired state */
-#define MM_ERROR_RADIO_DEVICE_NOT_OPENED (MM_ERROR_RADIO_CLASS | 0x07) /**< Failed to opne radio devide */
-#define MM_ERROR_RADIO_DEVICE_NOT_FOUND (MM_ERROR_RADIO_CLASS | 0x08) /**< Failed to find radio devide */
-#define MM_ERROR_RADIO_PERMISSION_DENIED (MM_ERROR_RADIO_CLASS | 0x08) /**< not supported permission */
+#define MM_ERROR_RADIO_NOT_INITIALIZED (MM_ERROR_RADIO_CLASS | 0x01) /**< Radio instance is not initialized */
+#define MM_ERROR_RADIO_NO_FREE_SPACE (MM_ERROR_RADIO_CLASS | 0x02) /**< Not enough memory */
+#define MM_ERROR_RADIO_INTERNAL (MM_ERROR_RADIO_CLASS | 0x03) /**< Radio internal error */
+#define MM_ERROR_RADIO_RESPONSE_TIMEOUT (MM_ERROR_RADIO_CLASS | 0x04) /**< Response timeout error */
+#define MM_ERROR_RADIO_INVALID_STATE (MM_ERROR_RADIO_CLASS | 0x05) /**< Radio is in invalid state */
+#define MM_ERROR_RADIO_NO_OP (MM_ERROR_RADIO_CLASS | 0x06) /**< Radio is in desired state */
+#define MM_ERROR_RADIO_DEVICE_NOT_OPENED (MM_ERROR_RADIO_CLASS | 0x07) /**< Failed to opne radio devide */
+#define MM_ERROR_RADIO_DEVICE_NOT_FOUND (MM_ERROR_RADIO_CLASS | 0x08) /**< Failed to find radio devide */
+#define MM_ERROR_RADIO_PERMISSION_DENIED (MM_ERROR_RADIO_CLASS | 0x08) /**< not supported permission */
/*
*/
#define MM_ERROR_PLAYER_NOT_INITIALIZED (MM_ERROR_PLAYER_CLASS | 0x01) /**< Not initialized player */
#define MM_ERROR_PLAYER_CODEC_NOT_FOUND (MM_ERROR_PLAYER_CLASS | 0x02) /**< Not supported format */
-#define MM_ERROR_PLAYER_DECODE (MM_ERROR_PLAYER_CLASS | 0x03) /**< Error while decoding data */
+#define MM_ERROR_PLAYER_DECODE (MM_ERROR_PLAYER_CLASS | 0x03) /**< Error while decoding data */
#define MM_ERROR_PLAYER_NO_FREE_SPACE (MM_ERROR_PLAYER_CLASS | 0x04) /**< Out of storage */
#define MM_ERROR_PLAYER_FILE_NOT_FOUND (MM_ERROR_PLAYER_CLASS | 0x05) /**< Cannot find file */
#define MM_ERROR_PLAYER_STREAM_NOT_FOUND (MM_ERROR_PLAYER_CLASS | 0x06) /**< Cannot find stream */
#define MM_ERROR_PLAYER_END_OF_STREAM (MM_ERROR_PLAYER_CLASS | 0x07) /**< End of stream */
-#define MM_ERROR_PLAYER_SEEK (MM_ERROR_PLAYER_CLASS | 0x08) /**< Seek related errors */
-#define MM_ERROR_PLAYER_INTERNAL (MM_ERROR_PLAYER_CLASS | 0x09) /**< Internal errors */
+#define MM_ERROR_PLAYER_SEEK (MM_ERROR_PLAYER_CLASS | 0x08) /**< Seek related errors */
+#define MM_ERROR_PLAYER_INTERNAL (MM_ERROR_PLAYER_CLASS | 0x09) /**< Internal errors */
#define MM_ERROR_PLAYER_INVALID_STATE (MM_ERROR_PLAYER_CLASS | 0x0a) /**< Invalid state */
#define MM_ERROR_PLAYER_AUDIO_NOT_OPENED (MM_ERROR_PLAYER_CLASS | 0x0b) /**< Cannot open audio */
#define MM_ERROR_PLAYER_INVALID_VOLUME (MM_ERROR_PLAYER_CLASS | 0x0c) /**< Invalid volume */
-#define MM_ERROR_PLAYER_INVALID_URI (MM_ERROR_PLAYER_CLASS | 0x0d) /**< Invalid URI */
+#define MM_ERROR_PLAYER_INVALID_URI (MM_ERROR_PLAYER_CLASS | 0x0d) /**< Invalid URI */
#define MM_ERROR_PLAYER_INVALID_POSITION (MM_ERROR_PLAYER_CLASS | 0x0e) /**< Invalid position */
-#define MM_ERROR_PLAYER_NO_OP (MM_ERROR_PLAYER_CLASS | 0x0f) /**< No operation */
+#define MM_ERROR_PLAYER_NO_OP (MM_ERROR_PLAYER_CLASS | 0x0f) /**< No operation */
#define MM_ERROR_PLAYER_BT_CONNECTION (MM_ERROR_PLAYER_CLASS | 0x10) /**< bt connection error */
-#define MM_ERROR_PLAYER_BT_WRITE (MM_ERROR_PLAYER_CLASS | 0x11) /**< bt connection error */
-#define MM_ERROR_PLAYER_NOT_SUPPORTED_FORMAT (MM_ERROR_PLAYER_CLASS | 0x12) /**< Not supported format */
-#define MM_ERROR_PLAYER_AUDIO_CODEC_NOT_FOUND (MM_ERROR_PLAYER_CLASS | 0x13) /**< Not supported audio codec */
-#define MM_ERROR_PLAYER_VIDEO_CODEC_NOT_FOUND (MM_ERROR_PLAYER_CLASS | 0x14) /**< Not supported video codec */
+#define MM_ERROR_PLAYER_BT_WRITE (MM_ERROR_PLAYER_CLASS | 0x11) /**< bt connection error */
+#define MM_ERROR_PLAYER_NOT_SUPPORTED_FORMAT (MM_ERROR_PLAYER_CLASS | 0x12) /**< Not supported format */
+#define MM_ERROR_PLAYER_AUDIO_CODEC_NOT_FOUND (MM_ERROR_PLAYER_CLASS | 0x13) /**< Not supported audio codec */
+#define MM_ERROR_PLAYER_VIDEO_CODEC_NOT_FOUND (MM_ERROR_PLAYER_CLASS | 0x14) /**< Not supported video codec */
#define MM_ERROR_PLAYER_STREAMING_FAIL (MM_ERROR_PLAYER_CLASS | 0x15) /**< Fail to play streaming */
-#define MM_ERROR_PLAYER_DSP_CRASHED (MM_ERROR_PLAYER_CLASS | 0x16) /**< Dsp is crashed */
+#define MM_ERROR_PLAYER_DSP_CRASHED (MM_ERROR_PLAYER_CLASS | 0x16) /**< Dsp is crashed */
#define MM_ERROR_PLAYER_INVALID_STREAM (MM_ERROR_PLAYER_CLASS | 0x17) /**< Invalid stream */
-#define MM_ERROR_PLAYER_DOING_SEEK (MM_ERROR_PLAYER_CLASS | 0x18) /**< Still seeking */
-
-#define MM_ERROR_PLAYER_STREAMING_UNSUPPORTED_AUDIO (MM_ERROR_PLAYER_CLASS | 0x22) /**< Unsupported audio */
-#define MM_ERROR_PLAYER_STREAMING_UNSUPPORTED_VIDEO (MM_ERROR_PLAYER_CLASS | 0x23) /**< Unsupported video */
-#define MM_ERROR_PLAYER_STREAMING_CONNECTION_FAIL (MM_ERROR_PLAYER_CLASS | 0x24) /**< Fail to connect to streaming server */
-#define MM_ERROR_PLAYER_STREAMING_DNS_FAIL (MM_ERROR_PLAYER_CLASS | 0x25) /**< Fail to get host using DNS */
-#define MM_ERROR_PLAYER_STREAMING_SERVER_DISCONNECTED (MM_ERROR_PLAYER_CLASS | 0x26) /**< Streaming server is disconnected */
-#define MM_ERROR_PLAYER_STREAMING_BAD_SERVER (MM_ERROR_PLAYER_CLASS | 0x27) /**< Streaming server's bad beahvior */
-#define MM_ERROR_PLAYER_STREAMING_INVALID_PROTOCOL (MM_ERROR_PLAYER_CLASS | 0x28) /**< Invalid protocol */
-#define MM_ERROR_PLAYER_STREAMING_INVALID_URL (MM_ERROR_PLAYER_CLASS | 0x29) /**< Invalid URL */
-#define MM_ERROR_PLAYER_STREAMING_UNEXPECTED_MSG (MM_ERROR_PLAYER_CLASS | 0x2a) /**< Unexpected message from streaming server */
-#define MM_ERROR_PLAYER_STREAMING_OUT_OF_MEMORIES (MM_ERROR_PLAYER_CLASS | 0x2b) /**< Out of memories */
-#define MM_ERROR_PLAYER_STREAMING_RTSP_TIMEOUT (MM_ERROR_PLAYER_CLASS | 0x2c) /**< RTSP timed out */
-#define MM_ERROR_PLAYER_STREAMING_BAD_REQUEST (MM_ERROR_PLAYER_CLASS | 0x2d) /**< Bad request */
-#define MM_ERROR_PLAYER_STREAMING_NOT_AUTHORIZED (MM_ERROR_PLAYER_CLASS | 0x2e) /**< Not authorized */
-#define MM_ERROR_PLAYER_STREAMING_PAYMENT_REQUIRED (MM_ERROR_PLAYER_CLASS | 0x2f) /**< Payment required */
-#define MM_ERROR_PLAYER_STREAMING_FORBIDDEN (MM_ERROR_PLAYER_CLASS | 0x30) /**< Forbidden by streaming server */
-#define MM_ERROR_PLAYER_STREAMING_CONTENT_NOT_FOUND (MM_ERROR_PLAYER_CLASS | 0x31) /**< Content could not be found */
-#define MM_ERROR_PLAYER_STREAMING_METHOD_NOT_ALLOWED (MM_ERROR_PLAYER_CLASS | 0x32) /**< Not allowed method by streaming server */
-#define MM_ERROR_PLAYER_STREAMING_NOT_ACCEPTABLE (MM_ERROR_PLAYER_CLASS | 0x33) /**< Not accepted by streaming server */
-#define MM_ERROR_PLAYER_STREAMING_PROXY_AUTHENTICATION_REQUIRED (MM_ERROR_PLAYER_CLASS | 0x34) /**< Proxy authentication is required */
-#define MM_ERROR_PLAYER_STREAMING_SERVER_TIMEOUT (MM_ERROR_PLAYER_CLASS | 0x35) /**< Streaming server timed out */
-#define MM_ERROR_PLAYER_STREAMING_GONE (MM_ERROR_PLAYER_CLASS | 0x36) /**< Gone */
-#define MM_ERROR_PLAYER_STREAMING_LENGTH_REQUIRED (MM_ERROR_PLAYER_CLASS | 0x37) /**< Length required */
-#define MM_ERROR_PLAYER_STREAMING_PRECONDITION_FAILED (MM_ERROR_PLAYER_CLASS | 0x38) /**< Precondition is failed */
-#define MM_ERROR_PLAYER_STREAMING_REQUEST_ENTITY_TOO_LARGE (MM_ERROR_PLAYER_CLASS | 0x39) /**< Request entity is too large */
-#define MM_ERROR_PLAYER_STREAMING_REQUEST_URI_TOO_LARGE (MM_ERROR_PLAYER_CLASS | 0x3a) /**< Request URL is too large */
-#define MM_ERROR_PLAYER_STREAMING_UNSUPPORTED_MEDIA_TYPE (MM_ERROR_PLAYER_CLASS | 0x3b) /**< Unsupported media type */
-#define MM_ERROR_PLAYER_STREAMING_PARAMETER_NOT_UNDERSTOOD (MM_ERROR_PLAYER_CLASS | 0x3c) /**< Parameter could not bu understood */
-#define MM_ERROR_PLAYER_STREAMING_CONFERENCE_NOT_FOUND (MM_ERROR_PLAYER_CLASS | 0x3d) /**< Conference could not be found */
-#define MM_ERROR_PLAYER_STREAMING_NOT_ENOUGH_BANDWIDTH (MM_ERROR_PLAYER_CLASS | 0x3e) /**< Bandwidth is not enough */
-#define MM_ERROR_PLAYER_STREAMING_NO_SESSION_ID (MM_ERROR_PLAYER_CLASS | 0x3f) /**< No session ID */
-#define MM_ERROR_PLAYER_STREAMING_METHOD_NOT_VALID_IN_THIS_STATE (MM_ERROR_PLAYER_CLASS | 0x40) /**< Method is not valid in this state */
-#define MM_ERROR_PLAYER_STREAMING_HEADER_FIELD_NOT_VALID_FOR_SOURCE (MM_ERROR_PLAYER_CLASS | 0x41) /**< Header field is not valid for source */
-#define MM_ERROR_PLAYER_STREAMING_INVALID_RANGE (MM_ERROR_PLAYER_CLASS | 0x42) /**< Invalid range */
-#define MM_ERROR_PLAYER_STREAMING_PARAMETER_IS_READONLY (MM_ERROR_PLAYER_CLASS | 0x43) /**< Parameter is read only */
-#define MM_ERROR_PLAYER_STREAMING_AGGREGATE_OP_NOT_ALLOWED (MM_ERROR_PLAYER_CLASS | 0x44) /**< Aggregation option is not allowed */
-#define MM_ERROR_PLAYER_STREAMING_ONLY_AGGREGATE_OP_ALLOWED (MM_ERROR_PLAYER_CLASS | 0x45) /**< Only aggregation option is allowed */
-#define MM_ERROR_PLAYER_STREAMING_BAD_TRANSPORT (MM_ERROR_PLAYER_CLASS | 0x46) /**< Bad transport */
-#define MM_ERROR_PLAYER_STREAMING_DESTINATION_UNREACHABLE (MM_ERROR_PLAYER_CLASS | 0x47) /**< Destination could not be reached */
-#define MM_ERROR_PLAYER_STREAMING_INTERNAL_SERVER_ERROR (MM_ERROR_PLAYER_CLASS | 0x48) /**< Internal server error */
-#define MM_ERROR_PLAYER_STREAMING_NOT_IMPLEMENTED (MM_ERROR_PLAYER_CLASS | 0x49) /**< Not implemented */
-#define MM_ERROR_PLAYER_STREAMING_BAD_GATEWAY (MM_ERROR_PLAYER_CLASS | 0x4a) /**< Bad gateway */
-#define MM_ERROR_PLAYER_STREAMING_SERVICE_UNAVAILABLE (MM_ERROR_PLAYER_CLASS | 0x4b) /**< Service is unavailable */
-#define MM_ERROR_PLAYER_STREAMING_GATEWAY_TIME_OUT (MM_ERROR_PLAYER_CLASS | 0x4c) /**< Gateway timed out */
-#define MM_ERROR_PLAYER_STREAMING_RTSP_VERSION_NOT_SUPPORTED (MM_ERROR_PLAYER_CLASS | 0x4d) /**< RTSP version is not supported */
-#define MM_ERROR_PLAYER_STREAMING_OPTION_NOT_SUPPORTED (MM_ERROR_PLAYER_CLASS | 0x4e) /**< Not supported option */
+#define MM_ERROR_PLAYER_DOING_SEEK (MM_ERROR_PLAYER_CLASS | 0x18) /**< Still seeking */
+
+#define MM_ERROR_PLAYER_STREAMING_UNSUPPORTED_AUDIO (MM_ERROR_PLAYER_CLASS | 0x22) /**< Unsupported audio */
+#define MM_ERROR_PLAYER_STREAMING_UNSUPPORTED_VIDEO (MM_ERROR_PLAYER_CLASS | 0x23) /**< Unsupported video */
+#define MM_ERROR_PLAYER_STREAMING_CONNECTION_FAIL (MM_ERROR_PLAYER_CLASS | 0x24) /**< Fail to connect to streaming server */
+#define MM_ERROR_PLAYER_STREAMING_DNS_FAIL (MM_ERROR_PLAYER_CLASS | 0x25) /**< Fail to get host using DNS */
+#define MM_ERROR_PLAYER_STREAMING_SERVER_DISCONNECTED (MM_ERROR_PLAYER_CLASS | 0x26) /**< Streaming server is disconnected */
+#define MM_ERROR_PLAYER_STREAMING_BAD_SERVER (MM_ERROR_PLAYER_CLASS | 0x27) /**< Streaming server's bad beahvior */
+#define MM_ERROR_PLAYER_STREAMING_INVALID_PROTOCOL (MM_ERROR_PLAYER_CLASS | 0x28) /**< Invalid protocol */
+#define MM_ERROR_PLAYER_STREAMING_INVALID_URL (MM_ERROR_PLAYER_CLASS | 0x29) /**< Invalid URL */
+#define MM_ERROR_PLAYER_STREAMING_UNEXPECTED_MSG (MM_ERROR_PLAYER_CLASS | 0x2a) /**< Unexpected message from streaming server */
+#define MM_ERROR_PLAYER_STREAMING_OUT_OF_MEMORIES (MM_ERROR_PLAYER_CLASS | 0x2b) /**< Out of memories */
+#define MM_ERROR_PLAYER_STREAMING_RTSP_TIMEOUT (MM_ERROR_PLAYER_CLASS | 0x2c) /**< RTSP timed out */
+#define MM_ERROR_PLAYER_STREAMING_BAD_REQUEST (MM_ERROR_PLAYER_CLASS | 0x2d) /**< Bad request */
+#define MM_ERROR_PLAYER_STREAMING_NOT_AUTHORIZED (MM_ERROR_PLAYER_CLASS | 0x2e) /**< Not authorized */
+#define MM_ERROR_PLAYER_STREAMING_PAYMENT_REQUIRED (MM_ERROR_PLAYER_CLASS | 0x2f) /**< Payment required */
+#define MM_ERROR_PLAYER_STREAMING_FORBIDDEN (MM_ERROR_PLAYER_CLASS | 0x30) /**< Forbidden by streaming server */
+#define MM_ERROR_PLAYER_STREAMING_CONTENT_NOT_FOUND (MM_ERROR_PLAYER_CLASS | 0x31) /**< Content could not be found */
+#define MM_ERROR_PLAYER_STREAMING_METHOD_NOT_ALLOWED (MM_ERROR_PLAYER_CLASS | 0x32) /**< Not allowed method by streaming server */
+#define MM_ERROR_PLAYER_STREAMING_NOT_ACCEPTABLE (MM_ERROR_PLAYER_CLASS | 0x33) /**< Not accepted by streaming server */
+#define MM_ERROR_PLAYER_STREAMING_PROXY_AUTHENTICATION_REQUIRED (MM_ERROR_PLAYER_CLASS | 0x34) /**< Proxy authentication is required */
+#define MM_ERROR_PLAYER_STREAMING_SERVER_TIMEOUT (MM_ERROR_PLAYER_CLASS | 0x35) /**< Streaming server timed out */
+#define MM_ERROR_PLAYER_STREAMING_GONE (MM_ERROR_PLAYER_CLASS | 0x36) /**< Gone */
+#define MM_ERROR_PLAYER_STREAMING_LENGTH_REQUIRED (MM_ERROR_PLAYER_CLASS | 0x37) /**< Length required */
+#define MM_ERROR_PLAYER_STREAMING_PRECONDITION_FAILED (MM_ERROR_PLAYER_CLASS | 0x38) /**< Precondition is failed */
+#define MM_ERROR_PLAYER_STREAMING_REQUEST_ENTITY_TOO_LARGE (MM_ERROR_PLAYER_CLASS | 0x39) /**< Request entity is too large */
+#define MM_ERROR_PLAYER_STREAMING_REQUEST_URI_TOO_LARGE (MM_ERROR_PLAYER_CLASS | 0x3a) /**< Request URL is too large */
+#define MM_ERROR_PLAYER_STREAMING_UNSUPPORTED_MEDIA_TYPE (MM_ERROR_PLAYER_CLASS | 0x3b) /**< Unsupported media type */
+#define MM_ERROR_PLAYER_STREAMING_PARAMETER_NOT_UNDERSTOOD (MM_ERROR_PLAYER_CLASS | 0x3c) /**< Parameter could not bu understood */
+#define MM_ERROR_PLAYER_STREAMING_CONFERENCE_NOT_FOUND (MM_ERROR_PLAYER_CLASS | 0x3d) /**< Conference could not be found */
+#define MM_ERROR_PLAYER_STREAMING_NOT_ENOUGH_BANDWIDTH (MM_ERROR_PLAYER_CLASS | 0x3e) /**< Bandwidth is not enough */
+#define MM_ERROR_PLAYER_STREAMING_NO_SESSION_ID (MM_ERROR_PLAYER_CLASS | 0x3f) /**< No session ID */
+#define MM_ERROR_PLAYER_STREAMING_METHOD_NOT_VALID_IN_THIS_STATE (MM_ERROR_PLAYER_CLASS | 0x40) /**< Method is not valid in this state */
+#define MM_ERROR_PLAYER_STREAMING_HEADER_FIELD_NOT_VALID_FOR_SOURCE (MM_ERROR_PLAYER_CLASS | 0x41) /**< Header field is not valid for source */
+#define MM_ERROR_PLAYER_STREAMING_INVALID_RANGE (MM_ERROR_PLAYER_CLASS | 0x42) /**< Invalid range */
+#define MM_ERROR_PLAYER_STREAMING_PARAMETER_IS_READONLY (MM_ERROR_PLAYER_CLASS | 0x43) /**< Parameter is read only */
+#define MM_ERROR_PLAYER_STREAMING_AGGREGATE_OP_NOT_ALLOWED (MM_ERROR_PLAYER_CLASS | 0x44) /**< Aggregation option is not allowed */
+#define MM_ERROR_PLAYER_STREAMING_ONLY_AGGREGATE_OP_ALLOWED (MM_ERROR_PLAYER_CLASS | 0x45) /**< Only aggregation option is allowed */
+#define MM_ERROR_PLAYER_STREAMING_BAD_TRANSPORT (MM_ERROR_PLAYER_CLASS | 0x46) /**< Bad transport */
+#define MM_ERROR_PLAYER_STREAMING_DESTINATION_UNREACHABLE (MM_ERROR_PLAYER_CLASS | 0x47) /**< Destination could not be reached */
+#define MM_ERROR_PLAYER_STREAMING_INTERNAL_SERVER_ERROR (MM_ERROR_PLAYER_CLASS | 0x48) /**< Internal server error */
+#define MM_ERROR_PLAYER_STREAMING_NOT_IMPLEMENTED (MM_ERROR_PLAYER_CLASS | 0x49) /**< Not implemented */
+#define MM_ERROR_PLAYER_STREAMING_BAD_GATEWAY (MM_ERROR_PLAYER_CLASS | 0x4a) /**< Bad gateway */
+#define MM_ERROR_PLAYER_STREAMING_SERVICE_UNAVAILABLE (MM_ERROR_PLAYER_CLASS | 0x4b) /**< Service is unavailable */
+#define MM_ERROR_PLAYER_STREAMING_GATEWAY_TIME_OUT (MM_ERROR_PLAYER_CLASS | 0x4c) /**< Gateway timed out */
+#define MM_ERROR_PLAYER_STREAMING_RTSP_VERSION_NOT_SUPPORTED (MM_ERROR_PLAYER_CLASS | 0x4d) /**< RTSP version is not supported */
+#define MM_ERROR_PLAYER_STREAMING_OPTION_NOT_SUPPORTED (MM_ERROR_PLAYER_CLASS | 0x4e) /**< Not supported option */
/*
MM_CAMCORDER_ERROR_CLASS
*/
-#define MM_ERROR_CAMCORDER_DEVICE (MM_ERROR_CAMCORDER_CLASS | 0x01) /**< General error of camera device */
-#define MM_ERROR_CAMCORDER_DEVICE_NOT_FOUND (MM_ERROR_CAMCORDER_CLASS | 0x02) /**< Cannot find camera device */
-#define MM_ERROR_CAMCORDER_DEVICE_BUSY (MM_ERROR_CAMCORDER_CLASS | 0x03) /**< Busy camera device */
-#define MM_ERROR_CAMCORDER_DEVICE_OPEN (MM_ERROR_CAMCORDER_CLASS | 0x04) /**< Fail to open camera device */
-#define MM_ERROR_CAMCORDER_DEVICE_IO (MM_ERROR_CAMCORDER_CLASS | 0x05) /**< Fail to control camera device */
-#define MM_ERROR_CAMCORDER_DEVICE_TIMEOUT (MM_ERROR_CAMCORDER_CLASS | 0x06) /**< Device Timeout */
-#define MM_ERROR_CAMCORDER_DEVICE_REG_TROUBLE (MM_ERROR_CAMCORDER_CLASS | 0x07) /**< Register trouble of camear device */
-#define MM_ERROR_CAMCORDER_DEVICE_WRONG_JPEG (MM_ERROR_CAMCORDER_CLASS | 0x08) /**< Captured data is abnormal */
-#define MM_ERROR_CAMCORDER_DEVICE_LACK_BUFFER (MM_ERROR_CAMCORDER_CLASS | 0x09) /**< Buffer of device is not sufficient */
-
-#define MM_ERROR_CAMCORDER_GST_CORE (MM_ERROR_CAMCORDER_CLASS | 0x0a) /**< Gst Core error */
-#define MM_ERROR_CAMCORDER_GST_LIBRARY (MM_ERROR_CAMCORDER_CLASS | 0x0b) /**< Gst library error */
-#define MM_ERROR_CAMCORDER_GST_RESOURCE (MM_ERROR_CAMCORDER_CLASS | 0x0c) /**< Gst resource error */
-#define MM_ERROR_CAMCORDER_GST_STREAM (MM_ERROR_CAMCORDER_CLASS | 0x0d) /**< Gst stream error */
-#define MM_ERROR_CAMCORDER_GST_STATECHANGE (MM_ERROR_CAMCORDER_CLASS | 0x0e) /**< Gst state change failed */
-#define MM_ERROR_CAMCORDER_GST_NEGOTIATION (MM_ERROR_CAMCORDER_CLASS | 0x0f) /**< Gst negotiation failed */
-#define MM_ERROR_CAMCORDER_GST_LINK (MM_ERROR_CAMCORDER_CLASS | 0x10) /**< Gst linking failed */
-#define MM_ERROR_CAMCORDER_GST_FLOW_ERROR (MM_ERROR_CAMCORDER_CLASS | 0x11) /**< Gst linking failed */
-
-#define MM_ERROR_CAMCORDER_ENCODER (MM_ERROR_CAMCORDER_CLASS | 0x12) /**< General error of Encoder */
-#define MM_ERROR_CAMCORDER_ENCODER_BUFFER (MM_ERROR_CAMCORDER_CLASS | 0x13) /**< Encoder buffer error */
-#define MM_ERROR_CAMCORDER_ENCODER_WRONG_TYPE (MM_ERROR_CAMCORDER_CLASS | 0x14) /**< Encoder wrong type (format or param) */
-#define MM_ERROR_CAMCORDER_ENCODER_WORKING (MM_ERROR_CAMCORDER_CLASS | 0x15) /**< Encoding fail */
-
-#define MM_ERROR_CAMCORDER_INVALID_CONDITION (MM_ERROR_CAMCORDER_CLASS | 0x16) /**< Invalid pre-condition */
-#define MM_ERROR_CAMCORDER_INVALID_STATE (MM_ERROR_CAMCORDER_CLASS | 0x17) /**< Invalid state */
-#define MM_ERROR_CAMCORDER_INVALID_ARGUMENT (MM_ERROR_CAMCORDER_CLASS | 0x18) /**< Invalid Argument */
-
-#define MM_ERROR_CAMCORDER_INTERNAL (MM_ERROR_CAMCORDER_CLASS | 0x19) /**< Internal error */
-#define MM_ERROR_CAMCORDER_NOT_SUPPORTED (MM_ERROR_CAMCORDER_CLASS | 0x1a) /**< Not supported by camera device */
-#define MM_ERROR_CAMCORDER_RESPONSE_TIMEOUT (MM_ERROR_CAMCORDER_CLASS | 0x1b) /**< Not responsed in time */
-#define MM_ERROR_CAMCORDER_NOT_INITIALIZED (MM_ERROR_CAMCORDER_CLASS | 0x1c) /**< Not initialized camcorder */
-#define MM_ERROR_CAMCORDER_LOW_MEMORY (MM_ERROR_CAMCORDER_CLASS | 0x1d) /**< Memory alloc failed */
-#define MM_ERROR_CAMCORDER_RESOURCE_CREATION (MM_ERROR_CAMCORDER_CLASS | 0x1e) /**< Creating resource of camcorder failed */
-#define MM_ERROR_CAMCORDER_CMD_IS_RUNNING (MM_ERROR_CAMCORDER_CLASS | 0x1f) /**< Command is running now */
-#define MM_ERROR_CAMCORDER_DSP_FAIL (MM_ERROR_CAMCORDER_CLASS | 0x20) /**< DSP fail */
-#define MM_ERROR_CAMCORDER_AUDIO_EMPTY (MM_ERROR_CAMCORDER_CLASS | 0x21) /**< Audio data is empty */
-#define MM_ERROR_CAMCORDER_CREATE_CONFIGURE (MM_ERROR_CAMCORDER_CLASS | 0x22) /**< Failed to create configure structure */
-#define MM_ERROR_CAMCORDER_FILE_SIZE_OVER (MM_ERROR_CAMCORDER_CLASS | 0x23) /**< File size is greater than max size */
-#define MM_ERROR_CAMCORDER_DISPLAY_DEVICE_OFF (MM_ERROR_CAMCORDER_CLASS | 0x24) /**< Display device is off. Requests could be ignored */
-#define MM_ERROR_CAMCORDER_FORBIDDEN_STATE (MM_ERROR_CAMCORDER_CLASS | 0x25) /**< System security support(ex:MDM) */
-
-#define MM_ERROR_CAMCORDER_MNOTE_CREATION (MM_ERROR_CAMCORDER_CLASS | 0x26) /**< Exif makernote data construction failed */
-#define MM_ERROR_CAMCORDER_MNOTE_MALLOC (MM_ERROR_CAMCORDER_CLASS | 0x27) /**< Memory allocation for makernote entries failed */
-#define MM_ERROR_CAMCORDER_MNOTE_ADD_ENTRY (MM_ERROR_CAMCORDER_CLASS | 0x28) /**< Adding a makernote entry to list failed */
+#define MM_ERROR_CAMCORDER_DEVICE (MM_ERROR_CAMCORDER_CLASS | 0x01) /**< General error of camera device */
+#define MM_ERROR_CAMCORDER_DEVICE_NOT_FOUND (MM_ERROR_CAMCORDER_CLASS | 0x02) /**< Cannot find camera device */
+#define MM_ERROR_CAMCORDER_DEVICE_BUSY (MM_ERROR_CAMCORDER_CLASS | 0x03) /**< Busy camera device */
+#define MM_ERROR_CAMCORDER_DEVICE_OPEN (MM_ERROR_CAMCORDER_CLASS | 0x04) /**< Fail to open camera device */
+#define MM_ERROR_CAMCORDER_DEVICE_IO (MM_ERROR_CAMCORDER_CLASS | 0x05) /**< Fail to control camera device */
+#define MM_ERROR_CAMCORDER_DEVICE_TIMEOUT (MM_ERROR_CAMCORDER_CLASS | 0x06) /**< Device Timeout */
+#define MM_ERROR_CAMCORDER_DEVICE_REG_TROUBLE (MM_ERROR_CAMCORDER_CLASS | 0x07) /**< Register trouble of camear device */
+#define MM_ERROR_CAMCORDER_DEVICE_WRONG_JPEG (MM_ERROR_CAMCORDER_CLASS | 0x08) /**< Captured data is abnormal */
+#define MM_ERROR_CAMCORDER_DEVICE_LACK_BUFFER (MM_ERROR_CAMCORDER_CLASS | 0x09) /**< Buffer of device is not sufficient */
+
+#define MM_ERROR_CAMCORDER_GST_CORE (MM_ERROR_CAMCORDER_CLASS | 0x0a) /**< Gst Core error */
+#define MM_ERROR_CAMCORDER_GST_LIBRARY (MM_ERROR_CAMCORDER_CLASS | 0x0b) /**< Gst library error */
+#define MM_ERROR_CAMCORDER_GST_RESOURCE (MM_ERROR_CAMCORDER_CLASS | 0x0c) /**< Gst resource error */
+#define MM_ERROR_CAMCORDER_GST_STREAM (MM_ERROR_CAMCORDER_CLASS | 0x0d) /**< Gst stream error */
+#define MM_ERROR_CAMCORDER_GST_STATECHANGE (MM_ERROR_CAMCORDER_CLASS | 0x0e) /**< Gst state change failed */
+#define MM_ERROR_CAMCORDER_GST_NEGOTIATION (MM_ERROR_CAMCORDER_CLASS | 0x0f) /**< Gst negotiation failed */
+#define MM_ERROR_CAMCORDER_GST_LINK (MM_ERROR_CAMCORDER_CLASS | 0x10) /**< Gst linking failed */
+#define MM_ERROR_CAMCORDER_GST_FLOW_ERROR (MM_ERROR_CAMCORDER_CLASS | 0x11) /**< Gst linking failed */
+
+#define MM_ERROR_CAMCORDER_ENCODER (MM_ERROR_CAMCORDER_CLASS | 0x12) /**< General error of Encoder */
+#define MM_ERROR_CAMCORDER_ENCODER_BUFFER (MM_ERROR_CAMCORDER_CLASS | 0x13) /**< Encoder buffer error */
+#define MM_ERROR_CAMCORDER_ENCODER_WRONG_TYPE (MM_ERROR_CAMCORDER_CLASS | 0x14) /**< Encoder wrong type (format or param) */
+#define MM_ERROR_CAMCORDER_ENCODER_WORKING (MM_ERROR_CAMCORDER_CLASS | 0x15) /**< Encoding fail */
+
+#define MM_ERROR_CAMCORDER_INVALID_CONDITION (MM_ERROR_CAMCORDER_CLASS | 0x16) /**< Invalid pre-condition */
+#define MM_ERROR_CAMCORDER_INVALID_STATE (MM_ERROR_CAMCORDER_CLASS | 0x17) /**< Invalid state */
+#define MM_ERROR_CAMCORDER_INVALID_ARGUMENT (MM_ERROR_CAMCORDER_CLASS | 0x18) /**< Invalid Argument */
+
+#define MM_ERROR_CAMCORDER_INTERNAL (MM_ERROR_CAMCORDER_CLASS | 0x19) /**< Internal error */
+#define MM_ERROR_CAMCORDER_NOT_SUPPORTED (MM_ERROR_CAMCORDER_CLASS | 0x1a) /**< Not supported by camera device */
+#define MM_ERROR_CAMCORDER_RESPONSE_TIMEOUT (MM_ERROR_CAMCORDER_CLASS | 0x1b) /**< Not responsed in time */
+#define MM_ERROR_CAMCORDER_NOT_INITIALIZED (MM_ERROR_CAMCORDER_CLASS | 0x1c) /**< Not initialized camcorder */
+#define MM_ERROR_CAMCORDER_LOW_MEMORY (MM_ERROR_CAMCORDER_CLASS | 0x1d) /**< Memory alloc failed */
+#define MM_ERROR_CAMCORDER_RESOURCE_CREATION (MM_ERROR_CAMCORDER_CLASS | 0x1e) /**< Creating resource of camcorder failed */
+#define MM_ERROR_CAMCORDER_CMD_IS_RUNNING (MM_ERROR_CAMCORDER_CLASS | 0x1f) /**< Command is running now */
+#define MM_ERROR_CAMCORDER_DSP_FAIL (MM_ERROR_CAMCORDER_CLASS | 0x20) /**< DSP fail */
+#define MM_ERROR_CAMCORDER_AUDIO_EMPTY (MM_ERROR_CAMCORDER_CLASS | 0x21) /**< Audio data is empty */
+#define MM_ERROR_CAMCORDER_CREATE_CONFIGURE (MM_ERROR_CAMCORDER_CLASS | 0x22) /**< Failed to create configure structure */
+#define MM_ERROR_CAMCORDER_FILE_SIZE_OVER (MM_ERROR_CAMCORDER_CLASS | 0x23) /**< File size is greater than max size */
+#define MM_ERROR_CAMCORDER_DISPLAY_DEVICE_OFF (MM_ERROR_CAMCORDER_CLASS | 0x24) /**< Display device is off. Requests could be ignored */
+
+#define MM_ERROR_CAMCORDER_MNOTE_CREATION (MM_ERROR_CAMCORDER_CLASS | 0x26) /**< Exif makernote data construction failed */
+#define MM_ERROR_CAMCORDER_MNOTE_MALLOC (MM_ERROR_CAMCORDER_CLASS | 0x27) /**< Memory allocation for makernote entries failed */
+#define MM_ERROR_CAMCORDER_MNOTE_ADD_ENTRY (MM_ERROR_CAMCORDER_CLASS | 0x28) /**< Adding a makernote entry to list failed */
/*
MM_IMAGE_ERROR_CLASS
*/
-#define MM_ERROR_IMAGE_FILEOPEN (MM_ERROR_IMAGE_CLASS | 1) /**< Cannot open file */
-#define MM_ERROR_IMAGE_INTERNAL (MM_ERROR_IMAGE_CLASS | 2) /**< Image module internal error */
+#define MM_ERROR_IMAGE_FILEOPEN (MM_ERROR_IMAGE_CLASS | 1) /**< Cannot open file */
+#define MM_ERROR_IMAGE_INTERNAL (MM_ERROR_IMAGE_CLASS | 2) /**< Image module internal error */
#define MM_ERROR_IMAGEHANDLE_NOT_INITIALIZED (MM_ERROR_IMAGE_CLASS | 3) /**< Fail to open camera device */
-#define MM_ERROR_NO_DECODED_DATA (MM_ERROR_IMAGE_CLASS | 4) /**< Fail to control camera device */
-#define MM_ERROR_IMAGE_INVALID_VALUE (MM_ERROR_IMAGE_CLASS | 0x22) /**< Invalid value */
-#define MM_ERROR_IMAGE_NOT_SUPPORT_FORMAT (MM_ERROR_IMAGE_CLASS | 0x23) /**< Not supported image format */
-#define MM_ERROR_IMAGE_DEVICE_NOT_SUPPORT (MM_ERROR_IMAGE_CLASS | 0x24) /**< Not supported image device */
+#define MM_ERROR_NO_DECODED_DATA (MM_ERROR_IMAGE_CLASS | 4) /**< Fail to control camera device */
+#define MM_ERROR_IMAGE_NO_FREE_SPACE (MM_ERROR_IMAGE_CLASS | 5) /**< Not enough memory */
+#define MM_ERROR_IMAGE_INVALID_VALUE (MM_ERROR_IMAGE_CLASS | 0x22) /**< Invalid value */
+#define MM_ERROR_IMAGE_NOT_SUPPORT_FORMAT (MM_ERROR_IMAGE_CLASS | 0x23) /**< Not supported image format */
+#define MM_ERROR_IMAGE_DEVICE_NOT_SUPPORT (MM_ERROR_IMAGE_CLASS | 0x24) /**< Not supported image device */
/*
* MM_ERROR_FILE_CLASS
*/
-#define MM_ERROR_FILE_INTERNAL (MM_ERROR_FILE_CLASS | 0x01) /**< Internal error */
-#define MM_ERROR_FILE_UNKNOWN_FORMAT (MM_ERROR_FILE_CLASS | 0x02) /**< Unknown file format */
+#define MM_ERROR_FILE_INTERNAL (MM_ERROR_FILE_CLASS | 0x01) /**< Internal error */
+#define MM_ERROR_FILE_UNKNOWN_FORMAT (MM_ERROR_FILE_CLASS | 0x02) /**< Unknown file format */
/*
MM_MGR_ERROR_CLASS
*/
-#define MM_ERROR_MGR_NOT_INITIALIZED (MM_ERROR_MGR_CLASS | 1) /**< Not initialized MGR */
-#define MM_ERROR_MGR_CODEC_NOT_FOUND (MM_ERROR_MGR_CLASS | 2) /**< Not supported format */
-#define MM_ERROR_MGR_DECODE (MM_ERROR_MGR_CLASS | 3) /**< Error while decoding data */
-#define MM_ERROR_MGR_FILE_NOT_FOUND (MM_ERROR_MGR_CLASS | 5) /**< Cannot find file */
-#define MM_ERROR_MGR_STREAM_NOT_FOUND (MM_ERROR_MGR_CLASS | 6) /**< Cannot find stream */
-#define MM_ERROR_MGR_END_OF_STREAM (MM_ERROR_MGR_CLASS | 7) /**< End of stream */
-#define MM_ERROR_MGR_SEEK (MM_ERROR_MGR_CLASS | 8) /**< Seek related errors */
-#define MM_ERROR_MGR_INTERNAL (MM_ERROR_MGR_CLASS | 9) /**< Internal errors */
-#define MM_ERROR_MGR_INVALID_STATE (MM_ERROR_MGR_CLASS | 10) /**< Invalid state */
+#define MM_ERROR_MGR_NOT_INITIALIZED (MM_ERROR_MGR_CLASS | 1) /**< Not initialized MGR */
+#define MM_ERROR_MGR_CODEC_NOT_FOUND (MM_ERROR_MGR_CLASS | 2) /**< Not supported format */
+#define MM_ERROR_MGR_DECODE (MM_ERROR_MGR_CLASS | 3) /**< Error while decoding data */
+#define MM_ERROR_MGR_FILE_NOT_FOUND (MM_ERROR_MGR_CLASS | 5) /**< Cannot find file */
+#define MM_ERROR_MGR_STREAM_NOT_FOUND (MM_ERROR_MGR_CLASS | 6) /**< Cannot find stream */
+#define MM_ERROR_MGR_END_OF_STREAM (MM_ERROR_MGR_CLASS | 7) /**< End of stream */
+#define MM_ERROR_MGR_SEEK (MM_ERROR_MGR_CLASS | 8) /**< Seek related errors */
+#define MM_ERROR_MGR_INTERNAL (MM_ERROR_MGR_CLASS | 9) /**< Internal errors */
+#define MM_ERROR_MGR_INVALID_STATE (MM_ERROR_MGR_CLASS | 10) /**< Invalid state */
#define MM_ERROR_MGR_OPERATION_NOT_PERMITTED (MM_ERROR_MGR_CLASS | 0xA) /**< Not allowed operation*/
#define MM_ERROR_MGR_CAMERA_DEVICE_NOT_FOUND (MM_ERROR_MGR_CLASS | 0xB) /**< Cannot find camera device */
-#define MM_ERROR_MGR_CAMERA_DEVICE_BUSY (MM_ERROR_MGR_CLASS | 0xC) /**< Busy camera device */
-#define MM_ERROR_MGR_CAMERA_DEVICE_OPEN (MM_ERROR_MGR_CLASS | 0xD) /**< Fail to open camera device */
-#define MM_ERROR_MGR_CAMERA_DEVICE_IO (MM_ERROR_MGR_CLASS | 0xE) /**< Fail to control camera device */
-#define MM_ERROR_MGR_CAMERA_NOT_SUPPORTED (MM_ERROR_MGR_CLASS | 0xF) /**< Not supported by camera device */
-#define MM_ERROR_MGR_CAMERA_RESPONSE_TIMEOUT (MM_ERROR_MGR_CLASS | 0x11) /**< Not responsed in time */
-#define MM_ERROR_MGR_CAMERA_INTERNAL (MM_ERROR_MGR_CLASS | 0x12) /**< Camera internal error */
-#define MM_ERROR_MGR_CAMERA_INVALID_CONDITION (MM_ERROR_MGR_CLASS | 0x13) /**< Invalid pre-condition */
-#define MM_ERROR_MGR_MGR_IN_STATE_TRANSITION (MM_ERROR_MGR_CLASS | 0x14) /**< State transition from one state to another */
-#define MM_ERROR_MGR_RESPONSE_TIMEOUT (MM_ERROR_MGR_CLASS | 0x16) /**< Response timeout error */
+#define MM_ERROR_MGR_CAMERA_DEVICE_BUSY (MM_ERROR_MGR_CLASS | 0xC) /**< Busy camera device */
+#define MM_ERROR_MGR_CAMERA_DEVICE_OPEN (MM_ERROR_MGR_CLASS | 0xD) /**< Fail to open camera device */
+#define MM_ERROR_MGR_CAMERA_DEVICE_IO (MM_ERROR_MGR_CLASS | 0xE) /**< Fail to control camera device */
+#define MM_ERROR_MGR_CAMERA_NOT_SUPPORTED (MM_ERROR_MGR_CLASS | 0xF) /**< Not supported by camera device */
+#define MM_ERROR_MGR_CAMERA_RESPONSE_TIMEOUT (MM_ERROR_MGR_CLASS | 0x11) /**< Not responsed in time */
+#define MM_ERROR_MGR_CAMERA_INTERNAL (MM_ERROR_MGR_CLASS | 0x12) /**< Camera internal error */
+#define MM_ERROR_MGR_CAMERA_INVALID_CONDITION (MM_ERROR_MGR_CLASS | 0x13) /**< Invalid pre-condition */
+#define MM_ERROR_MGR_MGR_IN_STATE_TRANSITION (MM_ERROR_MGR_CLASS | 0x14) /**< State transition from one state to another */
+#define MM_ERROR_MGR_RESPONSE_TIMEOUT (MM_ERROR_MGR_CLASS | 0x16) /**< Response timeout error */
/*
MM_ERROR_POLICY_CLASS
*/
-#define MM_ERROR_POLICY_BLOCKED (MM_ERROR_POLICY_CLASS | 0x01) /**< Blocked by System policy */
-#define MM_ERROR_POLICY_INTERRUPTED (MM_ERROR_POLICY_CLASS | 0x02) /**< Interrupted by System policy */
-#define MM_ERROR_POLICY_INTERNAL (MM_ERROR_POLICY_CLASS | 0x03) /**< Internal errors */
-#define MM_ERROR_POLICY_DUPLICATED (MM_ERROR_POLICY_CLASS | 0x04) /**< Duplicated Policy Instance */
+#define MM_ERROR_POLICY_BLOCKED (MM_ERROR_POLICY_CLASS | 0x01) /**< Blocked by Audio system policy */
+#define MM_ERROR_POLICY_INTERRUPTED (MM_ERROR_POLICY_CLASS | 0x02) /**< Interrupted by Audio system policy */
+#define MM_ERROR_POLICY_INTERNAL (MM_ERROR_POLICY_CLASS | 0x03) /**< Internal errors */
+#define MM_ERROR_POLICY_DUPLICATED (MM_ERROR_POLICY_CLASS | 0x04) /**< Duplicated Policy Instance */
+#define MM_ERROR_POLICY_RESTRICTED (MM_ERROR_POLICY_CLASS | 0x05) /**< Restricted by security system policy */
/**
@}
*/
* Enumerations of messages type.
*/
enum MMMessageType {
-
/* COMMON */
MM_MESSAGE_UNKNOWN = 0x00, /**< Unknown message type */
- MM_MESSAGE_ERROR, /**< Error message type */
- MM_MESSAGE_WARNING, /**< Warning message type */
+ MM_MESSAGE_ERROR, /**< Error message type */
+ MM_MESSAGE_WARNING, /**< Warning message type */
MM_MESSAGE_STATE_CHANGED, /**< State change message type */
- MM_MESSAGE_STATE_INTERRUPTED, /**< State change by interrupt */
+ MM_MESSAGE_STATE_INTERRUPTED, /**< State change by interrupt */
MM_MESSAGE_READY_TO_RESUME, /**< Ready to resume message type */
/* PLAYER */
- MM_MESSAGE_CONNECTING = 0x100, /**< Connecting message type */
+ MM_MESSAGE_CONNECTING = 0x100, /**< Connecting message type */
MM_MESSAGE_CONNECTED, /**< Rtspsrc has successed to connecting to server */
- MM_MESSAGE_CONNECTION_TIMEOUT, /**< Connection timeout message type */
+ MM_MESSAGE_CONNECTION_TIMEOUT, /**< Connection timeout message type */
MM_MESSAGE_BUFFERING, /**< Buffering message type */
MM_MESSAGE_BEGIN_OF_STREAM, /**< Streaming begin message type */
MM_MESSAGE_END_OF_STREAM, /**< End of stream message type */
MM_MESSAGE_BLUETOOTH_OFF, /**< Bluetooth A2DP Connection OFF */
MM_MESSAGE_RESUMED_BY_REW, /**< Resumed by fast rewind message type */
MM_MESSAGE_UPDATE_SUBTITLE, /**< Update subtitle type */
- MM_MESSAGE_RTP_SENDER_REPORT, /**< RTP sender report */
- MM_MESSAGE_RTP_RECEIVER_REPORT, /**< RTP receiver report */
- MM_MESSAGE_RTP_SESSION_STATUS, /**< RTP session status */
+ MM_MESSAGE_RTP_SENDER_REPORT, /**< RTP sender report */
+ MM_MESSAGE_RTP_RECEIVER_REPORT, /**< RTP receiver report */
+ MM_MESSAGE_RTP_SESSION_STATUS, /**< RTP session status */
MM_MESSAGE_SENDER_STATE, /**< Sender state */
MM_MESSAGE_RECEIVER_STATE, /**< Receiver state */
- MM_MESSAGE_FILE_NOT_SUPPORTED, /**< Not supported file */
+ MM_MESSAGE_FILE_NOT_SUPPORTED, /**< Not supported file */
MM_MESSAGE_FILE_NOT_FOUND, /**< Not founded file */
- MM_MESSAGE_DRM_NOT_AUTHORIZED, /**< Not authorized to play the content */
+ MM_MESSAGE_DRM_NOT_AUTHORIZED, /**< Not authorized to play the content */
MM_MESSAGE_VIDEO_CAPTURED, /**< Video frame has been captured */
- MM_MESSAGE_VIDEO_NOT_CAPTURED, /**< video capture failed */
+ MM_MESSAGE_VIDEO_NOT_CAPTURED, /**< video capture failed */
MM_MESSAGE_SEEK_COMPLETED, /**< Seek completed */
/* CAMCORDER */
MM_MESSAGE_CAMCORDER_STATE_CHANGED = 0x200, /**< State changed.*/
MM_MESSAGE_CAMCORDER_STATE_CHANGED_BY_ASM, /**< State change by audio session manager message type */
- MM_MESSAGE_CAMCORDER_MAX_SIZE, /**< Maximum size, camcorder waits for user's order (cam_commit/cancel).*/
- MM_MESSAGE_CAMCORDER_NO_FREE_SPACE, /**< No free space, camcorder waits for user's order (cam_commit/cancel).*/
- MM_MESSAGE_CAMCORDER_TIME_LIMIT, /**< Time limit, camcorder waits for user's order (cam_commit/cancel)*/
- MM_MESSAGE_CAMCORDER_CAPTURED, /**< Image/audio/video captured.*/
- MM_MESSAGE_CAMCORDER_ERROR, /**< Error occurred.*/
- MM_MESSAGE_CAMCORDER_FOCUS_CHANGED, /**< Focus changed */
+ MM_MESSAGE_CAMCORDER_MAX_SIZE, /**< Maximum size, camcorder waits for user's order (cam_commit/cancel).*/
+ MM_MESSAGE_CAMCORDER_NO_FREE_SPACE, /**< No free space, camcorder waits for user's order (cam_commit/cancel).*/
+ MM_MESSAGE_CAMCORDER_TIME_LIMIT, /**< Time limit, camcorder waits for user's order (cam_commit/cancel)*/
+ MM_MESSAGE_CAMCORDER_CAPTURED, /**< Image/audio/video captured.*/
+ MM_MESSAGE_CAMCORDER_ERROR, /**< Error occurred.*/
+ MM_MESSAGE_CAMCORDER_FOCUS_CHANGED, /**< Focus changed */
MM_MESSAGE_CAMCORDER_CURRENT_VOLUME, /**< Current volume level of real input stream */
MM_MESSAGE_CAMCORDER_FIRMWARE_UPDATE, /**< Firmware update */
- MM_MESSAGE_CAMCORDER_RECORDING_STATUS, /**< Recording status. (Elapsed time, total time, file size(KB))*/
+ MM_MESSAGE_CAMCORDER_RECORDING_STATUS, /**< Recording status. (Elapsed time, total time, file size(KB))*/
MM_MESSAGE_CAMCORDER_STATE_CHANGED_BY_SECURITY, /**< State change by system security(ex:MDM) message type */
+ MM_MESSAGE_CAMCORDER_VIDEO_SNAPSHOT_CAPTURED, /**< Image captured while video recording */
/* RADIO */
MM_MESSAGE_RADIO_SCAN_START = 0x300, /**< Radio frequency scanning initiated */
- MM_MESSAGE_RADIO_SCAN_INFO, /**< Founded radio frequency report. check message parameters */
+ MM_MESSAGE_RADIO_SCAN_INFO, /**< Founded radio frequency report. check message parameters */
MM_MESSAGE_RADIO_SCAN_FINISH, /**< Radio frequency scanning has finished */
- MM_MESSAGE_RADIO_SCAN_STOP, /**< Radio frequency scanning has stopped */
+ MM_MESSAGE_RADIO_SCAN_STOP, /**< Radio frequency scanning has stopped */
MM_MESSAGE_RADIO_SEEK_START, /**< Radio seeking has established */
MM_MESSAGE_RADIO_SEEK_FINISH, /**< Radio seeking has finished */
-
/* MEDIA CALL */
MM_MESSAGE_MEDIACALL_RESERVED = 0x400, /**< Reserved message for Media Call */
-
/* IMAGE */
- MM_MESSAGE_IMAGE_RESERVED = 0x500, /**< Reserved message for Media Call */
-
+ MM_MESSAGE_IMAGE_RESERVED = 0x500, /**< Reserved message for Image */
/* SOUND */
- MM_MESSAGE_SOUND_RESERVED = 0x600, /**< Reserved message for Media Call */
-
+ MM_MESSAGE_SOUND_PCM_CAPTURE_RESTRICTED = 0x600, /**< Sound pcm capture is restricted by system */
+ MM_MESSAGE_SOUND_PCM_INTERRUPTED, /**< Sound pcm is interrupted by audio system */
/* FILE INFO */
- MM_MESSAGE_FILEINFO_RESERVED = 0x700, /**< Reserved message for Media Call */
+ MM_MESSAGE_FILEINFO_RESERVED = 0x700, /**< Reserved message for File Info */
- MM_MESSAGE_NUM, /**< The number of the messages */
+ MM_MESSAGE_NUM, /**< The number of the messages */
};
MM_MSG_CODE_INTERRUPTED_BY_ALARM_END,
};
+/*
+ * Enumerations of code for MM_MESSAGE_SOUND_PCM_CAPTURE_RESTRICTED messages type.
+ */
+enum MMMessagePcmCaptureCode {
+ MM_MSG_CODE_PCM_CAPTURE_RESTRICTED = 0,
+ MM_MSG_CODE_PCM_CAPTURE_ALLOWED,
+};
+
/**
* Message callback function type.
*/
* Recording status
*/
struct {
- unsigned int elapsed; /**< Elapsed time */
- unsigned int total; /**< Total time */
- unsigned int filesize; /**< Recording File size (KB). An approximate value. */
+ unsigned int elapsed; /**< Elapsed time (ms) */
+ unsigned int total; /**< Total time */
+ unsigned int filesize; /**< Recording File size (KB). An approximate value. */
+ unsigned int remained_time; /**< Remained time (ms).
+ This is available if time limit is not set or
+ time limit is bigger than estimated remained time. */
} recording_status;
/**