- 使用错误号:
-
发布时间:2009-11-20 09:55:26
发布时间:2009-11-20 09:55:26
使用方法:当某个接口返回失败时,可以调用Hik_PlayM4_GetLastError来获得错误的详细信息。 错误 错误号定义如下: #define HIK_PLAYM4_NOERROR 0 #define HIK_PLAYM4_PARA_OVER 1 #define HIK_PLAYM4_ORDER_ERROR 2 #define HIK_PLAYM4_TIMER_ERROR 3 #define HIK_PLAYM4_DEC_VIDEO_ERROR 4 #define HIK_PLAYM4_DEC_AUDIO_ERROR 5 #define HIK_PLAYM4_ALLOC_MEMORY_ERROR 6 #define HIK_PLAYM4_OPEN_FILE_ERROR 7 #define HIK_PLAYM4_CREATE_OBJ_ERROR 8 #define HIK_PLAYM4_CREATE_DDRAW_ERROR 9 #define HIK_PLAYM4_CREATE_OFFSCREEN_ERROR 10 #define HIK_PLAYM4_BUF_OVER 11 #define HIK_PLAYM4_CREATE_SOUND_ERROR 12 #define HIK_PLAYM4_SET_VOLUME_ERROR 13 #define HIK_PLAYM4_SUPPORT_FILE_ONLY 14 #define HIK_PLAYM4_SUPPORT_STREAM_ONLY 15 #define HIK_PLAYM4_SYS_NOT_SUPPORT 16 #define HIK_PLAYM4_FILEHEADER_UNKNOWN 17 #define HIK_PLAYM4_VERSION_INCORRECT 18 #define HIK_PALYM4_INIT_DECODER_ERROR 19 #define HIK_PLAYM4_CHECK_FILE_ERROR 20 #define HIK_PLAYM4_INIT_TIMER_ERROR 21 #define HIK_PLAYM4_BLT_ERROR 22 #define HIK_PLAYM4_UPDATE_ERROR 23 错误号说明: HIK_PLAYM4_NOERROR 没有错误; HIK_PLAYM4_PARA_OVER 输入参数非法; HIK_PLAYM4_ORDER_ERROR 调用顺序不对; HIK_PLAYM4_TIMER_ERROR 多媒体时钟设置失败; HIK_PLAYM4_DEC_VIDEO_ERROR 视频解码失败; HIK_PLAYM4_DEC_AUDIO_ERROR 音频解码失败; HIK_PLAYM4_ALLOC_MEMORY_ERROR 分配内存失败; HIK_PLAYM4_OPEN_FILE_ERROR 文件操作失败; HIK_PLAYM4_CREATE_OBJ_ERROR 创建线程事件等失败; HIK_PLAYM4_CREATE_DDRAW_ERROR 创建directDraw失败; HIK_PLAYM4_CREATE_OFFSCREEN_ERROR 创建后端缓存失败; HIK_PLAYM4_BUF_OVER 缓冲区满,输入流失败; HIK_PLAYM4_CREATE_SOUND_ERROR 创建音频设备失败; HIK_PLAYM4_SET_VOLUME_ERROR 设置音量失败; HIK_PLAYM4_SUPPORT_FILE_ONLY 只能在播放文件时才能使用此接口; HIK_PLAYM4_SUPPORT_STREAM_ONLY 只能在播放流时才能使用此接口; HIK_PLAYM4_SYS_NOT_SUPPORT 系统不支持,解码器只能工作在Pentium 3以上; HIK_PLAYM4_FILEHEADER_UNKNOWN 没有文件头; HIK_PLAYM4_VERSION_INCORRECT 解码器和编码器版本不对应; HIK_PALYM4_INIT_DECODER_ERROR 初始化解码器失败; HIK_PLAYM4_CHECK_FILE_ERROR 文件太短或码流无法识别; HIK_PLAYM4_INIT_TIMER_ERROR 初始化多媒体时钟失败; HIK_PLAYM4_BLT_ERROR 位拷贝失败