
#pragma once

typedef unsigned int  OS_Error;
enum
{
    OS_NoErr = (OS_Error)0,		//操作成功
    OS_BadURLFormat = (OS_Error)-1000,
    OS_NotEnoughSpace,
    OS_CannotOpenSocket,		//创建socket失败
    OS_CannotConnect,			//设备断开连接
    OS_InvalidArgument,			//无效数据
    OS_CannotSendData,			//发送数据失败
    OS_TRYAGAIN,				//服务器太忙，请再试试
    OS_OperationErr,			//函数调用错误
    OS_CannotOpenChn,			//打开通道失败
    OS_VideoNotOpen,			//视频通道没有打开
    OS_ConnectExist,			//连接已存在
	OS_PullCannotConn,			//pull不能连接
	OS_NotEnoughMem,			//内存不足
	OS_FileReadErr,				//文件读取出错
	OS_FileWriteErr,			//文件写入出错
	OS_CannotRecvData,			//读取数据超时
	OS_SetTimeFail,				//设置时间失败
	OS_DevCannotSupport,		//设备不支持此命令或接口
	OS_ExceedDevCapcity,		//超过设备存储容量
	OS_PlaySoundFail,			//播放声音失败
	OS_StarVoiceFail,			//启动对讲失败
	OS_SendVoiceFail,			//发送语音失败
	OS_InputAudioFail,			//InputAudio失败
	OS_DevNotSupportP2P,		//设备不支持P2P
	OS_JniError,                //JNI错误
    OS_JsonParseError,          //Json解析错误
	OS_InitThirdSDKFaild,		//调用第三方SDK失败
	OS_GetHandleIDFail,			//HandleID已经使用完
	OS_DateFormatErr,			//日期格式出错，日期格式不合法
	OS_InvalidDate,				//无效的日期（开始日期大于结束日期）
	OS_InvalidData,				//无效数据
	OS_VideoChannelException = -971,	//视频通道异常
};