// 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 TXLiteAVEvent {
  EVT_RTMP_PUSH_CONNECT_SUCC /* 1001 */,
  EVT_RTMP_PUSH_BEGIN /* 1002 */,
  EVT_CAMERA_START_SUCC /* 1003 */,
  EVT_SCREEN_CAPTURE_SUCC /* 1004 */,
  EVT_UP_CHANGE_RESOLUTION /* 1005 */,
  EVT_UP_CHANGE_BITRATE /* 1006 */,
  EVT_FIRST_FRAME_AVAILABLE /* 1007 */,
  EVT_START_VIDEO_ENCODER /* 1008 */,
  EVT_SNAPSHOT_COMPLETE /* 1022 */,
  EVT_CAMERA_REMOVED /* 1023 */,
  EVT_CAMERA_AVAILABLE /* 1024 */,
  EVT_CAMERA_CLOSE /* 1025 */,
  EVT_RTMP_PUSH_PUBLISH_START /* 1026 */,
  EVT_HW_ENCODER_START_SUCC /* 1027 */,
  EVT_SW_ENCODER_START_SUCC /* 1028 */,
  EVT_LOCAL_RECORD_RESULT /* 1029 */,
  EVT_LOCAL_RECORD_PROGRESS /* 1030 */,
  EVT_PLAY_LIVE_STREAM_CONNECT_SUCC /* 2001 */,
  EVT_PLAY_LIVE_STREAM_BEGIN /* 2002 */,
  EVT_RENDER_FIRST_I_FRAME /* 2003 */,
  EVT_VIDEO_PLAY_BEGIN /* 2004 */,
  EVT_VIDEO_PLAY_PROGRESS /* 2005 */,
  EVT_VIDEO_PLAY_END /* 2006 */,
  EVT_VIDEO_PLAY_LOADING /* 2007 */,
  EVT_START_VIDEO_DECODER /* 2008 */,
  EVT_DOWN_CHANGE_RESOLUTION /* 2009 */,
  EVT_GET_VODFILE_MEDIAINFO_SUCC /* 2010 */,
  EVT_VIDEO_CHANGE_ROTATION /* 2011 */,
  EVT_PLAY_GET_MESSAGE /* 2012 */,
  EVT_VOD_PLAY_PREPARED /* 2013 */,
  EVT_VOD_PLAY_LOADING_END /* 2014 */,
  EVT_PLAY_LIVE_STREAM_SWITCH_SUCC /* 2015 */,
  EVT_VOD_PLAY_TCP_CONNECT_SUCC /* 2016 */,
  EVT_VOD_PLAY_FIRST_VIDEO_PACKET /* 2017 */,
  EVT_VOD_PLAY_DNS_RESOLVED /* 2018 */,
  EVT_VOD_PLAY_SEEK_COMPLETE /* 2019 */,
  EVT_VIDEO_DECODER_CACHE_TOO_MANY_FRAMES /* 2020 */,
  EVT_HW_DECODER_START_SUCC /* 2021 */,
  EVT_SW_DECODER_START_SUCC /* 2022 */,
  EVT_AUDIO_JITTER_STATE_FIRST_LOADING /* 2023 */,
  EVT_AUDIO_JITTER_STATE_LOADING /* 2024 */,
  EVT_AUDIO_JITTER_STATE_PLAYING /* 2025 */,
  EVT_AUDIO_JITTER_STATE_FIRST_PLAY /* 2026 */,
  EVT_MIC_START_SUCC /* 2027 */,
  EVT_PLAY_GET_METADATA /* 2028 */,
  EVT_MIC_RELEASE_SUCC /* 2029 */,
  EVT_PLAY_GET_FLVSESSIONKEY /* 2030 */,
  EVT_ROOM_ENTER /* 1018 */,
  EVT_ROOM_EXIT /* 1019 */,
  EVT_ROOM_USERLIST /* 1020 */,
  EVT_ROOM_NEED_REENTER /* 1021 */,
  EVT_ROOM_ENTER_FAILED /* 1022 */,
  EVT_ROOM_USER_ENTER /* 1031 */,
  EVT_ROOM_USER_EXIT /* 1032 */,
  EVT_ROOM_USER_VIDEO_STATE /* 1033 */,
  EVT_ROOM_USER_AUDIO_STATE /* 1034 */,
  EVT_ROOM_REQUEST_IP_SUCC /* 8001 */,
  EVT_ROOM_CONNECT_SUCC /* 8002 */,
  EVT_ROOM_REQUEST_AVSEAT_SUCC /* 8003 */
}

extension TXLiteAVEventToX on TXLiteAVEvent {
  int toValue() {
    switch (this) {
      case TXLiteAVEvent.EVT_RTMP_PUSH_CONNECT_SUCC: return 1001;
      case TXLiteAVEvent.EVT_RTMP_PUSH_BEGIN: return 1002;
      case TXLiteAVEvent.EVT_CAMERA_START_SUCC: return 1003;
      case TXLiteAVEvent.EVT_SCREEN_CAPTURE_SUCC: return 1004;
      case TXLiteAVEvent.EVT_UP_CHANGE_RESOLUTION: return 1005;
      case TXLiteAVEvent.EVT_UP_CHANGE_BITRATE: return 1006;
      case TXLiteAVEvent.EVT_FIRST_FRAME_AVAILABLE: return 1007;
      case TXLiteAVEvent.EVT_START_VIDEO_ENCODER: return 1008;
      case TXLiteAVEvent.EVT_SNAPSHOT_COMPLETE: return 1022;
      case TXLiteAVEvent.EVT_CAMERA_REMOVED: return 1023;
      case TXLiteAVEvent.EVT_CAMERA_AVAILABLE: return 1024;
      case TXLiteAVEvent.EVT_CAMERA_CLOSE: return 1025;
      case TXLiteAVEvent.EVT_RTMP_PUSH_PUBLISH_START: return 1026;
      case TXLiteAVEvent.EVT_HW_ENCODER_START_SUCC: return 1027;
      case TXLiteAVEvent.EVT_SW_ENCODER_START_SUCC: return 1028;
      case TXLiteAVEvent.EVT_LOCAL_RECORD_RESULT: return 1029;
      case TXLiteAVEvent.EVT_LOCAL_RECORD_PROGRESS: return 1030;
      case TXLiteAVEvent.EVT_PLAY_LIVE_STREAM_CONNECT_SUCC: return 2001;
      case TXLiteAVEvent.EVT_PLAY_LIVE_STREAM_BEGIN: return 2002;
      case TXLiteAVEvent.EVT_RENDER_FIRST_I_FRAME: return 2003;
      case TXLiteAVEvent.EVT_VIDEO_PLAY_BEGIN: return 2004;
      case TXLiteAVEvent.EVT_VIDEO_PLAY_PROGRESS: return 2005;
      case TXLiteAVEvent.EVT_VIDEO_PLAY_END: return 2006;
      case TXLiteAVEvent.EVT_VIDEO_PLAY_LOADING: return 2007;
      case TXLiteAVEvent.EVT_START_VIDEO_DECODER: return 2008;
      case TXLiteAVEvent.EVT_DOWN_CHANGE_RESOLUTION: return 2009;
      case TXLiteAVEvent.EVT_GET_VODFILE_MEDIAINFO_SUCC: return 2010;
      case TXLiteAVEvent.EVT_VIDEO_CHANGE_ROTATION: return 2011;
      case TXLiteAVEvent.EVT_PLAY_GET_MESSAGE: return 2012;
      case TXLiteAVEvent.EVT_VOD_PLAY_PREPARED: return 2013;
      case TXLiteAVEvent.EVT_VOD_PLAY_LOADING_END: return 2014;
      case TXLiteAVEvent.EVT_PLAY_LIVE_STREAM_SWITCH_SUCC: return 2015;
      case TXLiteAVEvent.EVT_VOD_PLAY_TCP_CONNECT_SUCC: return 2016;
      case TXLiteAVEvent.EVT_VOD_PLAY_FIRST_VIDEO_PACKET: return 2017;
      case TXLiteAVEvent.EVT_VOD_PLAY_DNS_RESOLVED: return 2018;
      case TXLiteAVEvent.EVT_VOD_PLAY_SEEK_COMPLETE: return 2019;
      case TXLiteAVEvent.EVT_VIDEO_DECODER_CACHE_TOO_MANY_FRAMES: return 2020;
      case TXLiteAVEvent.EVT_HW_DECODER_START_SUCC: return 2021;
      case TXLiteAVEvent.EVT_SW_DECODER_START_SUCC: return 2022;
      case TXLiteAVEvent.EVT_AUDIO_JITTER_STATE_FIRST_LOADING: return 2023;
      case TXLiteAVEvent.EVT_AUDIO_JITTER_STATE_LOADING: return 2024;
      case TXLiteAVEvent.EVT_AUDIO_JITTER_STATE_PLAYING: return 2025;
      case TXLiteAVEvent.EVT_AUDIO_JITTER_STATE_FIRST_PLAY: return 2026;
      case TXLiteAVEvent.EVT_MIC_START_SUCC: return 2027;
      case TXLiteAVEvent.EVT_PLAY_GET_METADATA: return 2028;
      case TXLiteAVEvent.EVT_MIC_RELEASE_SUCC: return 2029;
      case TXLiteAVEvent.EVT_PLAY_GET_FLVSESSIONKEY: return 2030;
      case TXLiteAVEvent.EVT_ROOM_ENTER: return 1018;
      case TXLiteAVEvent.EVT_ROOM_EXIT: return 1019;
      case TXLiteAVEvent.EVT_ROOM_USERLIST: return 1020;
      case TXLiteAVEvent.EVT_ROOM_NEED_REENTER: return 1021;
      case TXLiteAVEvent.EVT_ROOM_ENTER_FAILED: return 1022;
      case TXLiteAVEvent.EVT_ROOM_USER_ENTER: return 1031;
      case TXLiteAVEvent.EVT_ROOM_USER_EXIT: return 1032;
      case TXLiteAVEvent.EVT_ROOM_USER_VIDEO_STATE: return 1033;
      case TXLiteAVEvent.EVT_ROOM_USER_AUDIO_STATE: return 1034;
      case TXLiteAVEvent.EVT_ROOM_REQUEST_IP_SUCC: return 8001;
      case TXLiteAVEvent.EVT_ROOM_CONNECT_SUCC: return 8002;
      case TXLiteAVEvent.EVT_ROOM_REQUEST_AVSEAT_SUCC: return 8003;
      default: return 0;
    }
  }
}

extension TXLiteAVEventFromX on int {
  TXLiteAVEvent toTXLiteAVEvent() {
    switch (this) {
      case 1001: return TXLiteAVEvent.EVT_RTMP_PUSH_CONNECT_SUCC;
      case 1002: return TXLiteAVEvent.EVT_RTMP_PUSH_BEGIN;
      case 1003: return TXLiteAVEvent.EVT_CAMERA_START_SUCC;
      case 1004: return TXLiteAVEvent.EVT_SCREEN_CAPTURE_SUCC;
      case 1005: return TXLiteAVEvent.EVT_UP_CHANGE_RESOLUTION;
      case 1006: return TXLiteAVEvent.EVT_UP_CHANGE_BITRATE;
      case 1007: return TXLiteAVEvent.EVT_FIRST_FRAME_AVAILABLE;
      case 1008: return TXLiteAVEvent.EVT_START_VIDEO_ENCODER;
      case 1022: return TXLiteAVEvent.EVT_SNAPSHOT_COMPLETE;
      case 1023: return TXLiteAVEvent.EVT_CAMERA_REMOVED;
      case 1024: return TXLiteAVEvent.EVT_CAMERA_AVAILABLE;
      case 1025: return TXLiteAVEvent.EVT_CAMERA_CLOSE;
      case 1026: return TXLiteAVEvent.EVT_RTMP_PUSH_PUBLISH_START;
      case 1027: return TXLiteAVEvent.EVT_HW_ENCODER_START_SUCC;
      case 1028: return TXLiteAVEvent.EVT_SW_ENCODER_START_SUCC;
      case 1029: return TXLiteAVEvent.EVT_LOCAL_RECORD_RESULT;
      case 1030: return TXLiteAVEvent.EVT_LOCAL_RECORD_PROGRESS;
      case 2001: return TXLiteAVEvent.EVT_PLAY_LIVE_STREAM_CONNECT_SUCC;
      case 2002: return TXLiteAVEvent.EVT_PLAY_LIVE_STREAM_BEGIN;
      case 2003: return TXLiteAVEvent.EVT_RENDER_FIRST_I_FRAME;
      case 2004: return TXLiteAVEvent.EVT_VIDEO_PLAY_BEGIN;
      case 2005: return TXLiteAVEvent.EVT_VIDEO_PLAY_PROGRESS;
      case 2006: return TXLiteAVEvent.EVT_VIDEO_PLAY_END;
      case 2007: return TXLiteAVEvent.EVT_VIDEO_PLAY_LOADING;
      case 2008: return TXLiteAVEvent.EVT_START_VIDEO_DECODER;
      case 2009: return TXLiteAVEvent.EVT_DOWN_CHANGE_RESOLUTION;
      case 2010: return TXLiteAVEvent.EVT_GET_VODFILE_MEDIAINFO_SUCC;
      case 2011: return TXLiteAVEvent.EVT_VIDEO_CHANGE_ROTATION;
      case 2012: return TXLiteAVEvent.EVT_PLAY_GET_MESSAGE;
      case 2013: return TXLiteAVEvent.EVT_VOD_PLAY_PREPARED;
      case 2014: return TXLiteAVEvent.EVT_VOD_PLAY_LOADING_END;
      case 2015: return TXLiteAVEvent.EVT_PLAY_LIVE_STREAM_SWITCH_SUCC;
      case 2016: return TXLiteAVEvent.EVT_VOD_PLAY_TCP_CONNECT_SUCC;
      case 2017: return TXLiteAVEvent.EVT_VOD_PLAY_FIRST_VIDEO_PACKET;
      case 2018: return TXLiteAVEvent.EVT_VOD_PLAY_DNS_RESOLVED;
      case 2019: return TXLiteAVEvent.EVT_VOD_PLAY_SEEK_COMPLETE;
      case 2020: return TXLiteAVEvent.EVT_VIDEO_DECODER_CACHE_TOO_MANY_FRAMES;
      case 2021: return TXLiteAVEvent.EVT_HW_DECODER_START_SUCC;
      case 2022: return TXLiteAVEvent.EVT_SW_DECODER_START_SUCC;
      case 2023: return TXLiteAVEvent.EVT_AUDIO_JITTER_STATE_FIRST_LOADING;
      case 2024: return TXLiteAVEvent.EVT_AUDIO_JITTER_STATE_LOADING;
      case 2025: return TXLiteAVEvent.EVT_AUDIO_JITTER_STATE_PLAYING;
      case 2026: return TXLiteAVEvent.EVT_AUDIO_JITTER_STATE_FIRST_PLAY;
      case 2027: return TXLiteAVEvent.EVT_MIC_START_SUCC;
      case 2028: return TXLiteAVEvent.EVT_PLAY_GET_METADATA;
      case 2029: return TXLiteAVEvent.EVT_MIC_RELEASE_SUCC;
      case 2030: return TXLiteAVEvent.EVT_PLAY_GET_FLVSESSIONKEY;
      case 1018: return TXLiteAVEvent.EVT_ROOM_ENTER;
      case 1019: return TXLiteAVEvent.EVT_ROOM_EXIT;
      case 1020: return TXLiteAVEvent.EVT_ROOM_USERLIST;
      case 1021: return TXLiteAVEvent.EVT_ROOM_NEED_REENTER;
      case 1022: return TXLiteAVEvent.EVT_ROOM_ENTER_FAILED;
      case 1031: return TXLiteAVEvent.EVT_ROOM_USER_ENTER;
      case 1032: return TXLiteAVEvent.EVT_ROOM_USER_EXIT;
      case 1033: return TXLiteAVEvent.EVT_ROOM_USER_VIDEO_STATE;
      case 1034: return TXLiteAVEvent.EVT_ROOM_USER_AUDIO_STATE;
      case 8001: return TXLiteAVEvent.EVT_ROOM_REQUEST_IP_SUCC;
      case 8002: return TXLiteAVEvent.EVT_ROOM_CONNECT_SUCC;
      case 8003: return TXLiteAVEvent.EVT_ROOM_REQUEST_AVSEAT_SUCC;
      default: return TXLiteAVEvent.values[this + 1001];
    }
  }
}