chxavplayerr.h
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:15k
- //////////////////////////////////////////////////////////////////////////
- // Simpified Error Mapping from HX_RESULT to handful of error resources
- // See chxavplayer.rss for Resource ID's.
- // See chxavplayerr.h (this file) for HX_RESULT -> Resource ID's.
- // All resource text for localisation reside in this module for this
- // Player.
- //////////////////////////////////////////////////////////////////////////
- #ifndef HXPLAYERR_H_
- #define HXPLAYERR_H_
- static struct errorStringTable
- {
- HX_RESULT m_ulErrorTag;
- UINT32 m_ulErrorStringID;
- } const ErrorStringTable[] =
- {
- {HXR_FAILED, R_ERR_FAILURE}, // 1 "General error. An error occurred"
- {HXR_OUTOFMEMORY, R_ERR_NO_MEMORY}, // 2 "Out of memory."
- {HXR_INVALID_OPERATION, R_ERR_FAILURE}, // 3 "Invalid Operation."
- // state errors/return values
- {HXR_INVALID_PARAMETER, R_ERR_FAILURE}, // 8 "Invalid parameter. Unable to process request."
- {HXR_NOT_INITIALIZED, R_ERR_FAILURE}, // 10 "Not initialized."
- // file errors
- {HXR_INVALID_FILE, R_ERR_UNRECOGNIZED_FORMAT}, // 11 "This document is not a RealAudio document."
- {HXR_INVALID_VERSION, R_ERR_UNRECOGNIZED_FORMAT}, // 12 "Invalid RealAudio file version number."
- {HXR_DOC_MISSING, R_ERR_FILE_NOT_FOUND}, // 14 "Requested file not found. The link you followed may be outdated or inaccurate."
- {HXR_BAD_FORMAT, R_ERR_UNRECOGNIZED_FORMAT}, // 15 "Unknown data format."
- {HXR_CORRUPT_FILE, R_ERR_CORRUPT_FILE}, //"File header or data size is corrupt
- {HXR_REQUEST_UPGRADE, R_ERR_MISSING_COMPONENT}, // "A decoder or other necessary renderer component is missing."
- // server errors
- {HXR_NET_SOCKET_INVALID, R_ERR_NETWORK}, // 18 "Invalid socket error."
- {HXR_NET_CONNECT, R_ERR_FAILED_TO_CONNECT}, // 19 "An error occurred while trying to connect to the RealAudio Server."
- {HXR_BIND, R_ERR_FAILED_TO_CONNECT}, // 20 "An error occurred binding to network socket."
- {HXR_SOCKET_CREATE, R_ERR_NETWORK}, // 21 "An error occurred while creating a network socket."
- {HXR_INVALID_HOST, R_ERR_INVALID_URL}, // 22 "Requested server is not valid."
- {HXR_INVALID_PATH, R_ERR_INVALID_URL}, // 23 "Requested URL is not valid."
- {HXR_NET_READ, R_ERR_NETWORK}, // 24 "An error occurred while reading data from the network."
- {HXR_NET_WRITE, R_ERR_NETWORK}, // 25 "An error occurred while writing data to the network."
- {HXR_NET_UDP, R_ERR_NETWORK}, // 26 "Player cannot receive UDP data packets. You may wish to try the TCP data
- {HXR_HTTP_CONNECT, R_ERR_FAILED_TO_CONNECT}, // 25
- // option in the Network Preferences. You may also want to configure your player
- // to use a firewall proxy. Please contact your system adminstrator for more information."
- {HXR_SERVER_TIMEOUT, R_ERR_CONNECTION_TIMEOUT}, // 28 "Server timeout. Server not responding."
- {HXR_SERVER_DISCONNECTED, R_ERR_SERVER_DISCONNECT}, // 29 "Server disconnected. The server may be too busy or not available at this time."
- {HXR_DNR, R_ERR_CANNOT_RESOLVE}, // 30 "Cannot resolve the requested network address."
- {HXR_OPEN_DRIVER, R_ERR_CRITICAL_ERROR}, // 31 "Cannot open the network drivers."
- {HXR_BAD_SERVER, R_ERR_PROTOCOL_ERROR}, // 34 "This server is not using a recognized protocol."
- {HXR_ADVANCED_SERVER, R_ERR_UNRECOGNIZED_FORMAT}, // 35 "You need a newer client to access this server. Please upgrade."
- {HXR_OLD_SERVER, R_ERR_UNRECOGNIZED_FORMAT}, // 36 "Connection closed. The host's version of the RealAudio Server is too old for this client."
- {HXR_SERVER_ALERT, R_ERR_SERVER_ERROR}, // 45 "Server alert"
- // decoder errors
- {HXR_DEC_NOT_FOUND, R_ERR_CODEC_FAILURE}, // 38 "File compression not supported. Cannot locate the requested RealAudio decoder."
- {HXR_DEC_INVALID, R_ERR_CODEC_FAILURE}, // 39 "Invalid decoder."
- {HXR_DEC_TYPE_MISMATCH, R_ERR_CODEC_FAILURE}, // 40 "Decoder type mismatch. Cannot load the requested decoder."
- {HXR_DEC_INIT_FAILED, R_ERR_CODEC_FAILURE}, // 41 "Requested RealAudio Decoder cannot be found or cannot be used on this machine."
- {HXR_DEC_NOT_INITED, R_ERR_CODEC_FAILURE}, // 42 "RealAudio Decoder was not initialized before attempting to use it."
- {HXR_DEC_DECOMPRESS, R_ERR_CODEC_FAILURE}, // 43 "An error occurred during decoding."
- {HXR_NO_CODECS, R_ERR_UNRECOGNIZED_FORMAT}, // 87 "No RealAudio Codecs have been installed on your system."
- // proxy errors
- {HXR_PROXY, R_ERR_PROXY_ERROR}, // 46 "Proxy status error"
- {HXR_PROXY_RESPONSE, R_ERR_PROXY_ERROR}, // 47 "Proxy invalid response error"
- {HXR_ADVANCED_PROXY, R_ERR_PROXY_ERROR}, // 48 "You need a newer client to access this proxy. Please upgrade."
- {HXR_OLD_PROXY, R_ERR_PROXY_ERROR}, // 49 "Connection closed. The proxy is too old for this client."
- // audio errors
- {HXR_AUDIO_DRIVER, R_ERR_AUDIO_DEV_OPEN_FAIL}, // 50 "Cannot open audio device."
- // parsing errors
- {HXR_INVALID_PROTOCOL, R_ERR_INVALID_URL}, // 51 "Invalid protocol specified in URL."
- {HXR_INVALID_URL_OPTION, R_ERR_INVALID_URL}, // 52 "Invalid option specified in URL."
- {HXR_INVALID_URL_HOST, R_ERR_INVALID_URL}, // 53 "Invalid host string in requested URL."
- {HXR_INVALID_URL_PATH, R_ERR_INVALID_URL}, // 54 "Invalid resource path string in requested URL."
- {HXR_GENERAL_NONET, R_ERR_NETWORK}, // 55 "Error locating Winsock Services."
- // More errors
- {HXR_PERFECTPLAY_NOT_SUPPORTED, R_ERR_PROTOCOL_ERROR}, // 75, Requested server does not support PerfectPlay.
- {HXR_NO_LIVE_PERFECTPLAY, R_ERR_PROTOCOL_ERROR}, // 76, PerfectPlay not supported for live streams.
- {HXR_PERFECTPLAY_NOT_ALLOWED, R_ERR_PROTOCOL_ERROR}, // 78, PerfectPlay not allowed on this clip.
- {HXR_MULTICAST_JOIN, R_ERR_PROTOCOL_ERROR}, // 84, An error occured attempting to join multicast session.
- {HXR_GENERAL_MULTICAST, R_ERR_PROTOCOL_ERROR}, // 85, An error occured accessing a multicast session.
- {HXR_MULTICAST_UDP, R_ERR_PROTOCOL_ERROR}, // 86 "Player cannot receive UDP data packets from multicast session.
- // You may wish to try the TCP data option in the Network Preferences.
- // You may also want to configure your player to use a firewall proxy.
- // Please contact your system adminstrator for more information."
- {HXR_SLOW_MACHINE, R_ERR_CLIP_NOT_PLAYABLE}, // 88 "Your machine does not have enough CPU power to play this file in real time."
- {HXR_INVALID_HTTP_PROXY_HOST, R_ERR_PROXY_ERROR}, // 90 Invalid hostname for HTTP proxy.
- {HXR_INVALID_METAFILE, R_ERR_UNRECOGNIZED_FORMAT}, // 90 Invalid hostname for HTTP proxy.
- {HXR_NO_FILEFORMAT, R_ERR_UNRECOGNIZED_FORMAT}, // Missing components
- {HXR_NO_RENDERER, R_ERR_UNRECOGNIZED_FORMAT}, // Missing components
- {HXR_MISSING_COMPONENTS, R_ERR_UNRECOGNIZED_FORMAT}, // Missing components
- {HXR_BAD_TRANSPORT, R_ERR_SYSTEM_ERROR}, // 94 Transport not recognized
- {HXR_NOT_AUTHORIZED, R_ERR_NOT_AUTHORIZED },
- {HXR_NOTENOUGH_BANDWIDTH, R_ERR_NOT_ENOUGH_BW},
- {HXR_RIGHTS_EXPIRED, R_ERR_NO_RESOURCE}, // 1082 Digital Rights have expired.
- {HXR_RESTORATION_COMPLETE, R_ERR_NO_RESOURCE}, // restoration done.
- {HXR_BACKUP_COMPLETE, R_ERR_NO_RESOURCE}, // backup done.
- {HXR_TLC_NOT_CERTIFIED, R_ERR_NO_RESOURCE}, // tlc not certified
- {HXR_CORRUPTED_BACKUP_FILE, R_ERR_NO_RESOURCE}, // corrupted backup file
- {HXR_CHECK_RIGHTS, R_ERR_NO_RESOURCE}, // Check for more Rights
- {HXR_RESTORE_SERVER_DENIED, R_ERR_NO_RESOURCE}, // Restoration Denial from server.
- {HXR_DEBUGGER_DETECTED, R_ERR_FAILURE}, // Debugger detected.
- {HXR_RESTORE_SERVER_CONNECT, R_ERR_SERVER_ERROR}, // Cannot connect to Restore server .
- {HXR_RESTORE_SERVER_TIMEOUT, R_ERR_SERVER_ERROR}, // Restore server timeout.
- {HXR_REVOKE_SERVER_CONNECT, R_ERR_SERVER_ERROR}, // Cannot connect to Revoke server.
- {HXR_REVOKE_SERVER_TIMEOUT, R_ERR_CONNECTION_TIMEOUT}, // Revoke server timeout.
- {HXR_UNSUPPORTED_VIDEO, R_ERR_UNRECOGNIZED_FORMAT}, // 105 "The file contains an unsupported video format"
- {HXR_UNSUPPORTED_AUDIO, R_ERR_UNRECOGNIZED_FORMAT}, // 106 "The file contains an unsupported audio format"
- {HXR_TRY_AUTOCONFIG, R_ERR_FAILURE}, // 107 "AutoConfig needs to be performed"
- {HXR_PROXY_DNR, R_ERR_PROXY_ERROR}, // 108 "Unable to locate proxy server. This proxy server does not have a DNS entry. Please check the proxy server name and try again"
- {HXR_PROXY_NET_CONNECT, R_ERR_PROXY_ERROR}, // 109 "Connection to proxy server could not be established. You may be experiencing network problems."
- {HXR_VIEW_SOURCE_NOCLIP, R_ERR_NO_RESOURCE}, // 80 "No clip is avalible."
- {HXR_VIEW_SOURCE_DISSABLED, R_ERR_NO_RESOURCE}, // 81 "The provider of this content has not granted permission to view the source."
- {HXR_VSRC_DISABLED, R_ERR_NO_RESOURCE}, // "Select More Info to learn about viewing clip source."
- {HXR_VSRC_NOCLIP, R_ERR_NO_RESOURCE}, // "Select More Info to learn about viewing clip source."
- {HXR_WINDRAW_EXCEPTION, R_ERR_NO_RESOURCE}, // 98 "A windraw operation crashed."
- {HXR_VIEW_RIGHTS_NODRM, R_ERR_NO_RESOURCE},
- {HXR_VSRC_NODRM, R_ERR_NO_RESOURCE},
- // server alerts
- {HXR_SE_NO_ERROR, R_ERR_SERVER_ERROR},
- {HXR_SE_INVALID_VERSION, R_ERR_SERVER_ERROR},
- {HXR_SE_INVALID_FORMAT, R_ERR_SERVER_ERROR},
- {HXR_SE_INVALID_BANDWIDTH, R_ERR_SERVER_ERROR},
- {HXR_SE_INVALID_PATH, R_ERR_SERVER_ERROR},
- {HXR_SE_UNKNOWN_PATH, R_ERR_SERVER_ERROR},
- {HXR_SE_INVALID_PROTOCOL, R_ERR_SERVER_ERROR},
- {HXR_SE_INVALID_PLAYER_ADDR, R_ERR_SERVER_ERROR},
- {HXR_SE_LOCAL_STREAMS_PROHIBITED, R_ERR_SERVER_ERROR},
- {HXR_SE_SERVER_FULL, R_ERR_SERVER_ERROR},
- {HXR_SE_REMOTE_STREAMS_PROHIBITED, R_ERR_SERVER_ERROR},
- {HXR_SE_EVENT_STREAMS_PROHIBITED, R_ERR_SERVER_ERROR},
- {HXR_SE_INVALID_HOST, R_ERR_SERVER_ERROR},
- {HXR_SE_NO_CODEC, R_ERR_SERVER_ERROR},
- {HXR_SE_LIVEFILE_INVALID_BWN, R_ERR_SERVER_ERROR},
- {HXR_SE_UNABLE_TO_FULFILL, R_ERR_SERVER_ERROR},
- {HXR_SE_MULTICAST_DELIVERY_ONLY, R_ERR_SERVER_ERROR},
- {HXR_SE_LICENSE_EXCEEDED, R_ERR_SERVER_ERROR},
- {HXR_SE_LICENSE_UNAVAILABLE, R_ERR_SERVER_ERROR},
- {HXR_SE_INVALID_LOSS_CORRECTION, R_ERR_SERVER_ERROR},
- {HXR_SE_PROTOCOL_FAILURE, R_ERR_SERVER_ERROR},
- {HXR_SE_REALVIDEO_STREAMS_PROHIBITED, R_ERR_SERVER_ERROR},
- {HXR_SE_REALAUDIO_STREAMS_PROHIBITED, R_ERR_SERVER_ERROR},
- {HXR_SE_DATATYPE_UNSUPPORTED, R_ERR_SERVER_ERROR},
- {HXR_SE_DATATYPE_UNLICENSED, R_ERR_SERVER_ERROR},
- {HXR_SE_RESTRICTED_PLAYER, R_ERR_SERVER_ERROR},
- {HXR_SE_STREAM_INITIALIZING, R_ERR_SERVER_ERROR},
- {HXR_SE_INVALID_PLAYER, R_ERR_SERVER_ERROR},
- {HXR_SE_PLAYER_PLUS_ONLY, R_ERR_SERVER_ERROR},
- {HXR_SE_NO_EMBEDDED_PLAYERS, R_ERR_SERVER_ERROR},
- {HXR_SE_PNA_PROHIBITED, R_ERR_SERVER_ERROR},
- {HXR_SE_AUTHENTICATION_UNSUPPORTED, R_ERR_SERVER_ERROR},
- {HXR_SE_MAX_FAILED_AUTHENTICATIONS, R_ERR_SERVER_ERROR},
- {HXR_SE_AUTH_ACCESS_DENIED, R_ERR_SERVER_ERROR},
- {HXR_SE_AUTH_UUID_READ_ONLY, R_ERR_SERVER_ERROR},
- {HXR_SE_AUTH_UUID_NOT_UNIQUE, R_ERR_SERVER_ERROR},
- {HXR_SE_AUTH_NO_SUCH_USER, R_ERR_SERVER_ERROR},
- {HXR_SE_AUTH_REGISTRATION_SUCCEEDED, R_ERR_SERVER_ERROR},
- {HXR_SE_AUTH_REGISTRATION_FAILED, R_ERR_SERVER_ERROR},
- {HXR_SE_AUTH_REGISTRATION_GUID_REQUIRED, R_ERR_SERVER_ERROR},
- {HXR_SE_AUTH_UNREGISTERED_PLAYER, R_ERR_SERVER_ERROR},
- {HXR_SE_AUTH_TIME_EXPIRED, R_ERR_SERVER_ERROR},
- {HXR_SE_AUTH_NO_TIME_LEFT, R_ERR_SERVER_ERROR},
- {HXR_SE_AUTH_ACCOUNT_LOCKED, R_ERR_SERVER_ERROR},
- {HXR_SE_AUTH_INVALID_SERVER_CFG, R_ERR_SERVER_ERROR},
- {HXR_SE_NO_MOBILE_DOWNLOAD, R_ERR_SERVER_ERROR},
- {HXR_SE_NO_MORE_MULTI_ADDR, R_ERR_SERVER_ERROR},
- {HXR_PE_PROXY_MAX_CONNECTIONS, R_ERR_SERVER_ERROR},
- {HXR_PE_PROXY_MAX_GW_BANDWIDTH, R_ERR_SERVER_ERROR},
- {HXR_PE_PROXY_MAX_BANDWIDTH, R_ERR_SERVER_ERROR},
- {HXR_SE_BAD_LOADTEST_PASSWORD, R_ERR_SERVER_ERROR},
- {HXR_SE_PNA_NOT_SUPPORTED, R_ERR_SERVER_ERROR},
- {HXR_PE_PROXY_ORIGIN_DISCONNECTED, R_ERR_SERVER_ERROR},
- {HXR_SE_INTERNAL_ERROR, R_ERR_SERVER_ERROR}
- };
- #endif