/**----------------------------------------------------------------------
** Copyright    : Topesee(China) Co. Ltd 2006-20007
** File Name    : 
** Description  : Client Error code
**                
** Created On   : 03/19/07
** Created by   : Lionel Liao
** Modification : 
** 
**---------------------------------------------------------------------*/
#ifndef _CLIENT_ERROR_
#define _CLIENT_ERROR_

//Player error from -1
#define ERR_YN_PLAYER_CANT_ALLOC_ID						-1
#define ERR_YN_PLAYER_INVALID_DATA						-2
#define ERR_YN_PLAYER_NOT_FRM_HEAD						-3
#define ERR_YN_PLAYER_FRM_NOT_END						-4
#define ERR_CPlayerThread_ALREADYRUNNING				-5
#define ERR_CPlayerThread_CANTSTARTTHREAD				-6
#define ERR_YNDEC_INIT_FAIL								-7
#define ERR_YNDEC_OPEN_FAIL								-8
#define ERR_YN_PLAYER_GETFRM_ERR						-9
#define RR_AUDIOENC_ALREADY_OPENED						-10
#define ERR_AUDIOENC_ALREADY_OPENED						-11
#define ERR_AUDIOCODEC_OPEN_FAILED						-12
#define ERR_AUDIODEC_NOT_OPENED							-13
#define ERR_AUDIODEC_ALREADY_OPENED						-14
#define ERR_YN_PLAYER_NOT_OPEN								-15
#define ERR_YN_PLAYER_ALREADY_OPENED					-16
//Playback Session error  from -1000
#define ERR_CPlaybackSession_ALREADYRUNNING				-1000
#define ERR_CPlaybackSession_CANTSTARTTHREAD			-1001
#define ERR_CPlaybackSession_CANT_SOCKET_CREATE			-1002
#define ERR_CPlaybackSession_SOCKET_SETOPT				-1003
#define ERR_CPlaybackSession_CANT_CONNECT				-1004
#define ERR_CPlaybackSession_CANT_SEND					-1005
#define ERR_CPlaybackSession_OVERTIME					-1006
#define ERR_CPlaybackSession_CANT_RECV					-1007
#define ERR_CPlaybackSession_CANT_ALLOCPORT				-1008
#define ERR_CPlaybackSession_RTSPSEND					-1009
#define ERR_CPlaybackSession_RTSPRECV					-1010
#define ERR_CPlaybackSession_SETUPFAIL					-1011
#define ERR_CPlaybackSession_PLAYFAIL					-1012
#define ERR_CPlaybackSession_NOT_CONNECTED				-1013

//Live monitor Session error  from -2000
#define ERR_CSursvrCom_ALREADYRUNNING					-2000
#define ERR_CSursvrCom_CANTSTARTTHREAD					-2001
#define ERR_CSursvrCom_WRONG_MSGHEAD					-2002
#define ERR_CSursvrCom_WRONG_MSGSIZE					-2003
#define ERR_CSursvrCom_NO_CONNECT						-2004
#define ERR_CSursvrCom_CANT_ALLOCPORT					-2005
#define ERR_CSursvrCom_CANT_REMOVE						-2006
#define ERR_CSursvrCom_SENDERR							-2007
#define ERR_CSursvrCom_UNKNOWN_SN						-2008
#define ERR_CSursvrCom_INVALID_FSM						-2009
#define ERR_CSursvrCom_UNKOWN_MESSAGE					-2010
#define ERR_CSursvrCom_AUDIOSERVICE_ALREADYSTART		-2011
#define ERR_CSursvrCom_AUDIOSERVICE_ALREADYSTOP			-2012
#define ERR_CSursvrCom_AUDIOSERVICE_ALREADYBC			-2013
#define ERR_CSursvrCom_AUDIOSERVICE_REQUESTING			-2014
#define ERR_CSursvrCom_ALREADY_MREC						-2015
#define ERR_CSursvrCom_ALREADY_STOP_MREC				-2016
#define ERR_CSursvrCom_REMOVE_NO_ACK					-2017
#define ERR_CSursvrCom_AUDIOSERVICE_STARTFAILED			-2018
#define	ERR_CSursvrCom_NODEVICE							-2019
#define ERR_CTWSCom_WRONG_MSGHEAD						-2020
#define ERR_CTWSCom_WRONG_MSGSIZE						-2021
#define ERR_CTWSCom_UNKOWN_MESSAGE						-2022
#define ERR_CTWSCom_NO_CONNECT							-2023
#define	ERR_CTWSCom_NODEVICE							-2024
#define	ERR_CTWSCom_MALLOC_FAILURE						-2025
#define	ERR_CTWSCom_SENDERR								-2026

//Matadata server communication error from -3000
#define ERR_MdServerChannel_ALREADYRUNNING				-3000				
#define ERR_MdServerChannel_CANTSTARTTHREAD				-3001
#define ERR_CMataDataInf_NO_RESULT						-3002
#define ERR_CMataDataInf_NO_COMMONCFG					-3003
#define ERR_CMataDataInf_NO_INF							-3004
#define ERR_CMataDataInf_NOT_MASTER						-3005
#define ERR_CMataDataInf_EXCEPTION						-3006

//PTZ error from -4000
#define	ERR_PTZ_REQUEST_FAIL							-4000
#define ERR_PTZ_CANT_FIND_DEV							-4001
#define ERR_PTZ_NOPRIVILEGE								-4002

//AudioService error from -5000
#define ERR_CAudioService_ALREADYRUNNING				-5000
#define ERR_CAudioService_CANTSTARTTHREAD				-5001
#define ERR_CAudioServiceDec_ALREADYRUNNING				-5002
#define ERR_CAudioServiceDec_CANTSTARTTHREAD			-5003
#define ERR_CAudioServiceEnc_ALREADYRUNNING				-5004
#define ERR_CAudioServiceEnc_CANTSTARTTHREAD			-5005
#define ERR_CAudioService_CrtAudCodec_Fail				-5006
#define ERR_CAudioService_NO_Connection					-5007
#endif