// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////

enum EventID {
  PUSH_EVT_CONNECT_SUCC /* EVT_RTMP_PUSH_CONNECT_SUCC */,
  PUSH_EVT_PUSH_BEGIN /* EVT_RTMP_PUSH_BEGIN */,
  PUSH_EVT_OPEN_CAMERA_SUCC /* EVT_CAMERA_START_SUCC */,
  PUSH_EVT_CHANGE_RESOLUTION /* EVT_UP_CHANGE_RESOLUTION */,
  PUSH_EVT_CHANGE_BITRATE /* EVT_UP_CHANGE_BITRATE */,
  PUSH_EVT_FIRST_FRAME_AVAILABLE /* EVT_FIRST_FRAME_AVAILABLE */,
  PUSH_EVT_START_VIDEO_ENCODER /* EVT_START_VIDEO_ENCODER */,
  PUSH_EVT_ROOM_IN /* EVT_ROOM_ENTER */,
  PUSH_EVT_ROOM_IN_FAILED /* EVT_ROOM_ENTER_FAILED */,
  PUSH_EVT_ROOM_OUT /* EVT_ROOM_EXIT */,
  PUSH_EVT_ROOM_USERLIST /* EVT_ROOM_USERLIST */,
  PUSH_EVT_ROOM_NEED_REENTER /* EVT_ROOM_NEED_REENTER */,
  PUSH_EVT_ROOM_USER_ENTER /* EVT_ROOM_USER_ENTER */,
  PUSH_EVT_ROOM_USER_EXIT /* EVT_ROOM_USER_EXIT */,
  PUSH_EVT_ROOM_USER_VIDEO_STATE /* EVT_ROOM_USER_VIDEO_STATE */,
  PUSH_EVT_ROOM_USER_AUDIO_STATE /* EVT_ROOM_USER_AUDIO_STATE */,
  PUSH_ERR_OPEN_CAMERA_FAIL /* ERR_CAMERA_START_FAIL */,
  PUSH_ERR_OPEN_MIC_FAIL /* ERR_MIC_START_FAIL */,
  PUSH_ERR_VIDEO_ENCODE_FAIL /* ERR_VIDEO_ENCODE_FAIL */,
  PUSH_ERR_AUDIO_ENCODE_FAIL /* ERR_AUDIO_ENCODE_FAIL */,
  PUSH_ERR_UNSUPPORTED_RESOLUTION /* ERR_UNSUPPORTED_RESOLUTION */,
  PUSH_ERR_UNSUPPORTED_SAMPLERATE /* ERR_UNSUPPORTED_SAMPLERATE */,
  PUSH_ERR_NET_DISCONNECT /* ERR_RTMP_PUSH_NET_DISCONNECT */,
  PUSH_ERR_AUDIO_SYSTEM_NOT_WORK /* -1308 */,
  PUSH_ERR_INVALID_ADDRESS /* ERR_RTMP_PUSH_INVALID_ADDRESS */,
  PUSH_WARNING_NET_BUSY /* WARNING_NET_BUSY */,
  PUSH_WARNING_RECONNECT /* WARNING_RTMP_SERVER_RECONNECT */,
  PUSH_WARNING_HW_ACCELERATION_FAIL /* WARNING_HW_ENCODER_START_FAIL */,
  PUSH_WARNING_VIDEO_ENCODE_FAIL /* 1104 */,
  PUSH_WARNING_BEAUTYSURFACE_VIEW_INIT_FAIL /* 1105 */,
  PUSH_WARNING_VIDEO_ENCODE_BITRATE_OVERFLOW /* 1106 */,
  PUSH_WARNING_DNS_FAIL /* WARNING_RTMP_DNS_FAIL */,
  PUSH_WARNING_SEVER_CONN_FAIL /* WARNING_RTMP_SEVER_CONN_FAIL */,
  PUSH_WARNING_SHAKE_FAIL /* WARNING_RTMP_SHAKE_FAIL */,
  PUSH_WARNING_SERVER_DISCONNECT /* WARNING_RTMP_SERVER_BREAK_CONNECT */,
  PUSH_WARNING_READ_WRITE_FAIL /* WARNING_RTMP_READ_WRITE_FAIL */,
  INNER_EVT_SET_BITRATE_4_SCREEN_CAPTURE /* 100001 */,
  INNER_EVT_BGM_PLAY_FINISH /* 100002 */,
  PLAY_EVT_CONNECT_SUCC /* EVT_PLAY_LIVE_STREAM_CONNECT_SUCC */,
  PLAY_EVT_RTMP_STREAM_BEGIN /* EVT_PLAY_LIVE_STREAM_BEGIN */,
  PLAY_EVT_RCV_FIRST_I_FRAME /* EVT_RENDER_FIRST_I_FRAME */,
  PLAY_EVT_PLAY_BEGIN /* EVT_VIDEO_PLAY_BEGIN */,
  PLAY_EVT_PLAY_PROGRESS /* EVT_VIDEO_PLAY_PROGRESS */,
  PLAY_EVT_PLAY_END /* EVT_VIDEO_PLAY_END */,
  PLAY_EVT_PLAY_LOADING /* EVT_VIDEO_PLAY_LOADING */,
  PLAY_EVT_START_VIDEO_DECODER /* EVT_START_VIDEO_DECODER */,
  PLAY_EVT_CHANGE_RESOLUTION /* EVT_DOWN_CHANGE_RESOLUTION */,
  PLAY_EVT_GET_PLAYINFO_SUCC /* EVT_GET_VODFILE_MEDIAINFO_SUCC */,
  PLAY_EVT_CHANGE_ROTATION /* EVT_VIDEO_CHANGE_ROTATION */,
  PLAY_EVT_GET_MESSAGE /* EVT_PLAY_GET_MESSAGE */,
  PLAY_EVT_VOD_PLAY_PREPARED /* EVT_VOD_PLAY_PREPARED */,
  PLAY_EVT_VOD_LOADING_END /* EVT_VOD_PLAY_LOADING_END */,
  PLAY_EVT_STREAM_SWITCH_SUCC /* EVT_PLAY_LIVE_STREAM_SWITCH_SUCC */,
  PLAY_EVT_GET_METADATA /* EVT_PLAY_GET_METADATA */,
  PLAY_EVT_GET_FLVSESSIONKEY /* EVT_PLAY_GET_FLVSESSIONKEY */,
  PLAY_ERR_NET_DISCONNECT /* ERR_PLAY_LIVE_STREAM_NET_DISCONNECT */,
  PLAY_ERR_GET_RTMP_ACC_URL_FAIL /* ERR_GET_RTMP_ACC_URL_FAIL */,
  PLAY_ERR_FILE_NOT_FOUND /* ERR_FILE_NOT_FOUND */,
  PLAY_ERR_HEVC_DECODE_FAIL /* ERR_HEVC_DECODE_FAIL */,
  PLAY_ERR_HLS_KEY /* ERR_VOD_DECRYPT_FAIL */,
  PLAY_ERR_GET_PLAYINFO_FAIL /* ERR_GET_VODFILE_MEDIAINFO_FAIL */,
  PLAY_ERR_STREAM_SWITCH_FAIL /* ERR_PLAY_LIVE_STREAM_SWITCH_FAIL */,
  PLAY_WARNING_VIDEO_DECODE_FAIL /* WARNING_VIDEO_FRAME_DECODE_FAIL */,
  PLAY_WARNING_AUDIO_DECODE_FAIL /* WARNING_AUDIO_FRAME_DECODE_FAIL */,
  PLAY_WARNING_RECONNECT /* WARNING_LIVE_STREAM_SERVER_RECONNECT */,
  PLAY_WARNING_RECV_DATA_LAG /* WARNING_RECV_DATA_LAG */,
  PLAY_WARNING_VIDEO_PLAY_LAG /* WARNING_VIDEO_PLAY_LAG */,
  PLAY_WARNING_HW_ACCELERATION_FAIL /* WARNING_HW_DECODER_START_FAIL */,
  PLAY_WARNING_VIDEO_DISCONTINUITY /* 2107 */,
  PLAY_WARNING_FIRST_IDR_HW_DECODE_FAIL /* WARNING_VIDEO_DECODER_HW_TO_SW */,
  PLAY_WARNING_DNS_FAIL /* WARNING_RTMP_DNS_FAIL */,
  PLAY_WARNING_SEVER_CONN_FAIL /* WARNING_RTMP_SEVER_CONN_FAIL */,
  PLAY_WARNING_SHAKE_FAIL /* WARNING_RTMP_SHAKE_FAIL */,
  PLAY_WARNING_SERVER_DISCONNECT /* WARNING_RTMP_SERVER_BREAK_CONNECT */,
  PLAY_WARNING_READ_WRITE_FAIL /* WARNING_RTMP_READ_WRITE_FAIL */,
  UGC_WRITE_FILE_FAIL /* 4001 */
}

extension EventIDToX on EventID {
  int toValue() {
    switch (this) {
      case EventID.PUSH_EVT_CONNECT_SUCC: return 1001/* EVT_RTMP_PUSH_CONNECT_SUCC */;
      case EventID.PUSH_EVT_PUSH_BEGIN: return 1002/* EVT_RTMP_PUSH_BEGIN */;
      case EventID.PUSH_EVT_OPEN_CAMERA_SUCC: return 1003/* EVT_CAMERA_START_SUCC */;
      case EventID.PUSH_EVT_CHANGE_RESOLUTION: return 1005/* EVT_UP_CHANGE_RESOLUTION */;
      case EventID.PUSH_EVT_CHANGE_BITRATE: return 1006/* EVT_UP_CHANGE_BITRATE */;
      case EventID.PUSH_EVT_FIRST_FRAME_AVAILABLE: return 1007/* EVT_FIRST_FRAME_AVAILABLE */;
      case EventID.PUSH_EVT_START_VIDEO_ENCODER: return 1008/* EVT_START_VIDEO_ENCODER */;
      case EventID.PUSH_EVT_ROOM_IN: return 1018/* EVT_ROOM_ENTER */;
      case EventID.PUSH_EVT_ROOM_IN_FAILED: return 1022/* EVT_ROOM_ENTER_FAILED */;
      case EventID.PUSH_EVT_ROOM_OUT: return 1019/* EVT_ROOM_EXIT */;
      case EventID.PUSH_EVT_ROOM_USERLIST: return 1020/* EVT_ROOM_USERLIST */;
      case EventID.PUSH_EVT_ROOM_NEED_REENTER: return 1021/* EVT_ROOM_NEED_REENTER */;
      case EventID.PUSH_EVT_ROOM_USER_ENTER: return 1031/* EVT_ROOM_USER_ENTER */;
      case EventID.PUSH_EVT_ROOM_USER_EXIT: return 1032/* EVT_ROOM_USER_EXIT */;
      case EventID.PUSH_EVT_ROOM_USER_VIDEO_STATE: return 1033/* EVT_ROOM_USER_VIDEO_STATE */;
      case EventID.PUSH_EVT_ROOM_USER_AUDIO_STATE: return 1034/* EVT_ROOM_USER_AUDIO_STATE */;
      case EventID.PUSH_ERR_OPEN_CAMERA_FAIL: return -1301/* ERR_CAMERA_START_FAIL */;
      case EventID.PUSH_ERR_OPEN_MIC_FAIL: return -1302/* ERR_MIC_START_FAIL */;
      case EventID.PUSH_ERR_VIDEO_ENCODE_FAIL: return -1303/* ERR_VIDEO_ENCODE_FAIL */;
      case EventID.PUSH_ERR_AUDIO_ENCODE_FAIL: return -1304/* ERR_AUDIO_ENCODE_FAIL */;
      case EventID.PUSH_ERR_UNSUPPORTED_RESOLUTION: return -1305/* ERR_UNSUPPORTED_RESOLUTION */;
      case EventID.PUSH_ERR_UNSUPPORTED_SAMPLERATE: return -1306/* ERR_UNSUPPORTED_SAMPLERATE */;
      case EventID.PUSH_ERR_NET_DISCONNECT: return -1307/* ERR_RTMP_PUSH_NET_DISCONNECT */;
      case EventID.PUSH_ERR_AUDIO_SYSTEM_NOT_WORK: return -1308;
      case EventID.PUSH_ERR_INVALID_ADDRESS: return -1313/* ERR_RTMP_PUSH_INVALID_ADDRESS */;
      case EventID.PUSH_WARNING_NET_BUSY: return 1101/* WARNING_NET_BUSY */;
      case EventID.PUSH_WARNING_RECONNECT: return 1102/* WARNING_RTMP_SERVER_RECONNECT */;
      case EventID.PUSH_WARNING_HW_ACCELERATION_FAIL: return 1103/* WARNING_HW_ENCODER_START_FAIL */;
      case EventID.PUSH_WARNING_VIDEO_ENCODE_FAIL: return 1104;
      case EventID.PUSH_WARNING_BEAUTYSURFACE_VIEW_INIT_FAIL: return 1105;
      case EventID.PUSH_WARNING_VIDEO_ENCODE_BITRATE_OVERFLOW: return 1106;
      case EventID.PUSH_WARNING_DNS_FAIL: return 3001/* WARNING_RTMP_DNS_FAIL */;
      case EventID.PUSH_WARNING_SEVER_CONN_FAIL: return 3002/* WARNING_RTMP_SEVER_CONN_FAIL */;
      case EventID.PUSH_WARNING_SHAKE_FAIL: return 3003/* WARNING_RTMP_SHAKE_FAIL */;
      case EventID.PUSH_WARNING_SERVER_DISCONNECT: return 3004/* WARNING_RTMP_SERVER_BREAK_CONNECT */;
      case EventID.PUSH_WARNING_READ_WRITE_FAIL: return 3005/* WARNING_RTMP_READ_WRITE_FAIL */;
      case EventID.INNER_EVT_SET_BITRATE_4_SCREEN_CAPTURE: return 100001;
      case EventID.INNER_EVT_BGM_PLAY_FINISH: return 100002;
      case EventID.PLAY_EVT_CONNECT_SUCC: return 2001/* EVT_PLAY_LIVE_STREAM_CONNECT_SUCC */;
      case EventID.PLAY_EVT_RTMP_STREAM_BEGIN: return 2002/* EVT_PLAY_LIVE_STREAM_BEGIN */;
      case EventID.PLAY_EVT_RCV_FIRST_I_FRAME: return 2003/* EVT_RENDER_FIRST_I_FRAME */;
      case EventID.PLAY_EVT_PLAY_BEGIN: return 2004/* EVT_VIDEO_PLAY_BEGIN */;
      case EventID.PLAY_EVT_PLAY_PROGRESS: return 2005/* EVT_VIDEO_PLAY_PROGRESS */;
      case EventID.PLAY_EVT_PLAY_END: return 2006/* EVT_VIDEO_PLAY_END */;
      case EventID.PLAY_EVT_PLAY_LOADING: return 2007/* EVT_VIDEO_PLAY_LOADING */;
      case EventID.PLAY_EVT_START_VIDEO_DECODER: return 2008/* EVT_START_VIDEO_DECODER */;
      case EventID.PLAY_EVT_CHANGE_RESOLUTION: return 2009/* EVT_DOWN_CHANGE_RESOLUTION */;
      case EventID.PLAY_EVT_GET_PLAYINFO_SUCC: return 2010/* EVT_GET_VODFILE_MEDIAINFO_SUCC */;
      case EventID.PLAY_EVT_CHANGE_ROTATION: return 2011/* EVT_VIDEO_CHANGE_ROTATION */;
      case EventID.PLAY_EVT_GET_MESSAGE: return 2012/* EVT_PLAY_GET_MESSAGE */;
      case EventID.PLAY_EVT_VOD_PLAY_PREPARED: return 2013/* EVT_VOD_PLAY_PREPARED */;
      case EventID.PLAY_EVT_VOD_LOADING_END: return 2014/* EVT_VOD_PLAY_LOADING_END */;
      case EventID.PLAY_EVT_STREAM_SWITCH_SUCC: return 2015/* EVT_PLAY_LIVE_STREAM_SWITCH_SUCC */;
      case EventID.PLAY_EVT_GET_METADATA: return 2028/* EVT_PLAY_GET_METADATA */;
      case EventID.PLAY_EVT_GET_FLVSESSIONKEY: return 2030/* EVT_PLAY_GET_FLVSESSIONKEY */;
      case EventID.PLAY_ERR_NET_DISCONNECT: return -2301/* ERR_PLAY_LIVE_STREAM_NET_DISCONNECT */;
      case EventID.PLAY_ERR_GET_RTMP_ACC_URL_FAIL: return -2302/* ERR_GET_RTMP_ACC_URL_FAIL */;
      case EventID.PLAY_ERR_FILE_NOT_FOUND: return -2303/* ERR_FILE_NOT_FOUND */;
      case EventID.PLAY_ERR_HEVC_DECODE_FAIL: return -2304/* ERR_HEVC_DECODE_FAIL */;
      case EventID.PLAY_ERR_HLS_KEY: return -2305/* ERR_VOD_DECRYPT_FAIL */;
      case EventID.PLAY_ERR_GET_PLAYINFO_FAIL: return -2306/* ERR_GET_VODFILE_MEDIAINFO_FAIL */;
      case EventID.PLAY_ERR_STREAM_SWITCH_FAIL: return -2307/* ERR_PLAY_LIVE_STREAM_SWITCH_FAIL */;
      case EventID.PLAY_WARNING_VIDEO_DECODE_FAIL: return 2101/* WARNING_VIDEO_FRAME_DECODE_FAIL */;
      case EventID.PLAY_WARNING_AUDIO_DECODE_FAIL: return 2102/* WARNING_AUDIO_FRAME_DECODE_FAIL */;
      case EventID.PLAY_WARNING_RECONNECT: return 2103/* WARNING_LIVE_STREAM_SERVER_RECONNECT */;
      case EventID.PLAY_WARNING_RECV_DATA_LAG: return 2104/* WARNING_RECV_DATA_LAG */;
      case EventID.PLAY_WARNING_VIDEO_PLAY_LAG: return 2105/* WARNING_VIDEO_PLAY_LAG */;
      case EventID.PLAY_WARNING_HW_ACCELERATION_FAIL: return 2106/* WARNING_HW_DECODER_START_FAIL */;
      case EventID.PLAY_WARNING_VIDEO_DISCONTINUITY: return 2107;
      case EventID.PLAY_WARNING_FIRST_IDR_HW_DECODE_FAIL: return 2108/* WARNING_VIDEO_DECODER_HW_TO_SW */;
      case EventID.PLAY_WARNING_DNS_FAIL: return 3001/* WARNING_RTMP_DNS_FAIL */;
      case EventID.PLAY_WARNING_SEVER_CONN_FAIL: return 3002/* WARNING_RTMP_SEVER_CONN_FAIL */;
      case EventID.PLAY_WARNING_SHAKE_FAIL: return 3003/* WARNING_RTMP_SHAKE_FAIL */;
      case EventID.PLAY_WARNING_SERVER_DISCONNECT: return 3004/* WARNING_RTMP_SERVER_BREAK_CONNECT */;
      case EventID.PLAY_WARNING_READ_WRITE_FAIL: return 3005/* WARNING_RTMP_READ_WRITE_FAIL */;
      case EventID.UGC_WRITE_FILE_FAIL: return 4001;
      default: return 0;
    }
  }
}

extension EventIDFromX on int {
  EventID toEventID() {
    switch (this) {
      case 1001/* EVT_RTMP_PUSH_CONNECT_SUCC */: return EventID.PUSH_EVT_CONNECT_SUCC;
      case 1002/* EVT_RTMP_PUSH_BEGIN */: return EventID.PUSH_EVT_PUSH_BEGIN;
      case 1003/* EVT_CAMERA_START_SUCC */: return EventID.PUSH_EVT_OPEN_CAMERA_SUCC;
      case 1005/* EVT_UP_CHANGE_RESOLUTION */: return EventID.PUSH_EVT_CHANGE_RESOLUTION;
      case 1006/* EVT_UP_CHANGE_BITRATE */: return EventID.PUSH_EVT_CHANGE_BITRATE;
      case 1007/* EVT_FIRST_FRAME_AVAILABLE */: return EventID.PUSH_EVT_FIRST_FRAME_AVAILABLE;
      case 1008/* EVT_START_VIDEO_ENCODER */: return EventID.PUSH_EVT_START_VIDEO_ENCODER;
      case 1018/* EVT_ROOM_ENTER */: return EventID.PUSH_EVT_ROOM_IN;
      case 1022/* EVT_ROOM_ENTER_FAILED */: return EventID.PUSH_EVT_ROOM_IN_FAILED;
      case 1019/* EVT_ROOM_EXIT */: return EventID.PUSH_EVT_ROOM_OUT;
      case 1020/* EVT_ROOM_USERLIST */: return EventID.PUSH_EVT_ROOM_USERLIST;
      case 1021/* EVT_ROOM_NEED_REENTER */: return EventID.PUSH_EVT_ROOM_NEED_REENTER;
      case 1031/* EVT_ROOM_USER_ENTER */: return EventID.PUSH_EVT_ROOM_USER_ENTER;
      case 1032/* EVT_ROOM_USER_EXIT */: return EventID.PUSH_EVT_ROOM_USER_EXIT;
      case 1033/* EVT_ROOM_USER_VIDEO_STATE */: return EventID.PUSH_EVT_ROOM_USER_VIDEO_STATE;
      case 1034/* EVT_ROOM_USER_AUDIO_STATE */: return EventID.PUSH_EVT_ROOM_USER_AUDIO_STATE;
      case -1301/* ERR_CAMERA_START_FAIL */: return EventID.PUSH_ERR_OPEN_CAMERA_FAIL;
      case -1302/* ERR_MIC_START_FAIL */: return EventID.PUSH_ERR_OPEN_MIC_FAIL;
      case -1303/* ERR_VIDEO_ENCODE_FAIL */: return EventID.PUSH_ERR_VIDEO_ENCODE_FAIL;
      case -1304/* ERR_AUDIO_ENCODE_FAIL */: return EventID.PUSH_ERR_AUDIO_ENCODE_FAIL;
      case -1305/* ERR_UNSUPPORTED_RESOLUTION */: return EventID.PUSH_ERR_UNSUPPORTED_RESOLUTION;
      case -1306/* ERR_UNSUPPORTED_SAMPLERATE */: return EventID.PUSH_ERR_UNSUPPORTED_SAMPLERATE;
      case -1307/* ERR_RTMP_PUSH_NET_DISCONNECT */: return EventID.PUSH_ERR_NET_DISCONNECT;
      case -1308: return EventID.PUSH_ERR_AUDIO_SYSTEM_NOT_WORK;
      case -1313/* ERR_RTMP_PUSH_INVALID_ADDRESS */: return EventID.PUSH_ERR_INVALID_ADDRESS;
      case 1101/* WARNING_NET_BUSY */: return EventID.PUSH_WARNING_NET_BUSY;
      case 1102/* WARNING_RTMP_SERVER_RECONNECT */: return EventID.PUSH_WARNING_RECONNECT;
      case 1103/* WARNING_HW_ENCODER_START_FAIL */: return EventID.PUSH_WARNING_HW_ACCELERATION_FAIL;
      case 1104: return EventID.PUSH_WARNING_VIDEO_ENCODE_FAIL;
      case 1105: return EventID.PUSH_WARNING_BEAUTYSURFACE_VIEW_INIT_FAIL;
      case 1106: return EventID.PUSH_WARNING_VIDEO_ENCODE_BITRATE_OVERFLOW;
      case 3001/* WARNING_RTMP_DNS_FAIL */: return EventID.PUSH_WARNING_DNS_FAIL;
      case 3002/* WARNING_RTMP_SEVER_CONN_FAIL */: return EventID.PUSH_WARNING_SEVER_CONN_FAIL;
      case 3003/* WARNING_RTMP_SHAKE_FAIL */: return EventID.PUSH_WARNING_SHAKE_FAIL;
      case 3004/* WARNING_RTMP_SERVER_BREAK_CONNECT */: return EventID.PUSH_WARNING_SERVER_DISCONNECT;
      case 3005/* WARNING_RTMP_READ_WRITE_FAIL */: return EventID.PUSH_WARNING_READ_WRITE_FAIL;
      case 100001: return EventID.INNER_EVT_SET_BITRATE_4_SCREEN_CAPTURE;
      case 100002: return EventID.INNER_EVT_BGM_PLAY_FINISH;
      case 2001/* EVT_PLAY_LIVE_STREAM_CONNECT_SUCC */: return EventID.PLAY_EVT_CONNECT_SUCC;
      case 2002/* EVT_PLAY_LIVE_STREAM_BEGIN */: return EventID.PLAY_EVT_RTMP_STREAM_BEGIN;
      case 2003/* EVT_RENDER_FIRST_I_FRAME */: return EventID.PLAY_EVT_RCV_FIRST_I_FRAME;
      case 2004/* EVT_VIDEO_PLAY_BEGIN */: return EventID.PLAY_EVT_PLAY_BEGIN;
      case 2005/* EVT_VIDEO_PLAY_PROGRESS */: return EventID.PLAY_EVT_PLAY_PROGRESS;
      case 2006/* EVT_VIDEO_PLAY_END */: return EventID.PLAY_EVT_PLAY_END;
      case 2007/* EVT_VIDEO_PLAY_LOADING */: return EventID.PLAY_EVT_PLAY_LOADING;
      case 2008/* EVT_START_VIDEO_DECODER */: return EventID.PLAY_EVT_START_VIDEO_DECODER;
      case 2009/* EVT_DOWN_CHANGE_RESOLUTION */: return EventID.PLAY_EVT_CHANGE_RESOLUTION;
      case 2010/* EVT_GET_VODFILE_MEDIAINFO_SUCC */: return EventID.PLAY_EVT_GET_PLAYINFO_SUCC;
      case 2011/* EVT_VIDEO_CHANGE_ROTATION */: return EventID.PLAY_EVT_CHANGE_ROTATION;
      case 2012/* EVT_PLAY_GET_MESSAGE */: return EventID.PLAY_EVT_GET_MESSAGE;
      case 2013/* EVT_VOD_PLAY_PREPARED */: return EventID.PLAY_EVT_VOD_PLAY_PREPARED;
      case 2014/* EVT_VOD_PLAY_LOADING_END */: return EventID.PLAY_EVT_VOD_LOADING_END;
      case 2015/* EVT_PLAY_LIVE_STREAM_SWITCH_SUCC */: return EventID.PLAY_EVT_STREAM_SWITCH_SUCC;
      case 2028/* EVT_PLAY_GET_METADATA */: return EventID.PLAY_EVT_GET_METADATA;
      case 2030/* EVT_PLAY_GET_FLVSESSIONKEY */: return EventID.PLAY_EVT_GET_FLVSESSIONKEY;
      case -2301/* ERR_PLAY_LIVE_STREAM_NET_DISCONNECT */: return EventID.PLAY_ERR_NET_DISCONNECT;
      case -2302/* ERR_GET_RTMP_ACC_URL_FAIL */: return EventID.PLAY_ERR_GET_RTMP_ACC_URL_FAIL;
      case -2303/* ERR_FILE_NOT_FOUND */: return EventID.PLAY_ERR_FILE_NOT_FOUND;
      case -2304/* ERR_HEVC_DECODE_FAIL */: return EventID.PLAY_ERR_HEVC_DECODE_FAIL;
      case -2305/* ERR_VOD_DECRYPT_FAIL */: return EventID.PLAY_ERR_HLS_KEY;
      case -2306/* ERR_GET_VODFILE_MEDIAINFO_FAIL */: return EventID.PLAY_ERR_GET_PLAYINFO_FAIL;
      case -2307/* ERR_PLAY_LIVE_STREAM_SWITCH_FAIL */: return EventID.PLAY_ERR_STREAM_SWITCH_FAIL;
      case 2101/* WARNING_VIDEO_FRAME_DECODE_FAIL */: return EventID.PLAY_WARNING_VIDEO_DECODE_FAIL;
      case 2102/* WARNING_AUDIO_FRAME_DECODE_FAIL */: return EventID.PLAY_WARNING_AUDIO_DECODE_FAIL;
      case 2103/* WARNING_LIVE_STREAM_SERVER_RECONNECT */: return EventID.PLAY_WARNING_RECONNECT;
      case 2104/* WARNING_RECV_DATA_LAG */: return EventID.PLAY_WARNING_RECV_DATA_LAG;
      case 2105/* WARNING_VIDEO_PLAY_LAG */: return EventID.PLAY_WARNING_VIDEO_PLAY_LAG;
      case 2106/* WARNING_HW_DECODER_START_FAIL */: return EventID.PLAY_WARNING_HW_ACCELERATION_FAIL;
      case 2107: return EventID.PLAY_WARNING_VIDEO_DISCONTINUITY;
      case 2108/* WARNING_VIDEO_DECODER_HW_TO_SW */: return EventID.PLAY_WARNING_FIRST_IDR_HW_DECODE_FAIL;
      case 3001/* WARNING_RTMP_DNS_FAIL */: return EventID.PLAY_WARNING_DNS_FAIL;
      case 3002/* WARNING_RTMP_SEVER_CONN_FAIL */: return EventID.PLAY_WARNING_SEVER_CONN_FAIL;
      case 3003/* WARNING_RTMP_SHAKE_FAIL */: return EventID.PLAY_WARNING_SHAKE_FAIL;
      case 3004/* WARNING_RTMP_SERVER_BREAK_CONNECT */: return EventID.PLAY_WARNING_SERVER_DISCONNECT;
      case 3005/* WARNING_RTMP_READ_WRITE_FAIL */: return EventID.PLAY_WARNING_READ_WRITE_FAIL;
      case 4001: return EventID.UGC_WRITE_FILE_FAIL;
      default: return EventID.values[this + 1001/* EVT_RTMP_PUSH_CONNECT_SUCC */];
    }
  }
}