您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

JitsiConferenceErrors.ts 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. /**
  2. * The errors for the conference.
  3. */
  4. export enum JitsiConferenceErrors {
  5. /**
  6. * Indicates that client must be authenticated to create the conference.
  7. */
  8. AUTHENTICATION_REQUIRED = 'conference.authenticationRequired',
  9. /**
  10. * Indicates that chat error occurred.
  11. */
  12. CHAT_ERROR = 'conference.chatError',
  13. /**
  14. * Indicates that a connection error is due to denied access to the room,
  15. * occurred after joining a lobby room and access is denied by the room moderators.
  16. */
  17. CONFERENCE_ACCESS_DENIED = 'conference.connectionError.accessDenied',
  18. /**
  19. * Indicates that conference has been destroyed.
  20. */
  21. CONFERENCE_DESTROYED = 'conference.destroyed',
  22. /**
  23. * Indicates that max users limit has been reached.
  24. */
  25. CONFERENCE_MAX_USERS = 'conference.max_users',
  26. /**
  27. * Indicates that the client has been forced to restart by jicofo when the
  28. * conference was migrated from one bridge to another.
  29. */
  30. CONFERENCE_RESTARTED = 'conference.restarted',
  31. /**
  32. * Indicates that a connection error occurred when trying to join a conference.
  33. */
  34. CONNECTION_ERROR = 'conference.connectionError',
  35. /**
  36. * Indicates that the display name is required when joining the room.
  37. * There are cases like lobby room where display name is required.
  38. * @param {boolean|null} lobby whether the error is because lobby is enabled.
  39. */
  40. DISPLAY_NAME_REQUIRED = 'conference.display_name_required',
  41. /**
  42. * Indicates that focus error happened.
  43. */
  44. FOCUS_DISCONNECTED = 'conference.focusDisconnected',
  45. /**
  46. * Indicates that focus left the conference.
  47. */
  48. FOCUS_LEFT = 'conference.focusLeft',
  49. /**
  50. * Indicates that graceful shutdown happened.
  51. */
  52. GRACEFUL_SHUTDOWN = 'conference.gracefulShutdown',
  53. /**
  54. * Indicates that the media connection has failed.
  55. */
  56. ICE_FAILED = 'conference.iceFailed',
  57. /**
  58. * Indicates that the versions of the server side components are incompatible
  59. * with the client side.
  60. */
  61. INCOMPATIBLE_SERVER_VERSIONS = 'conference.incompatible_server_versions',
  62. /**
  63. * Indicates that a connection error is due to not allowed,
  64. * occurred when trying to join a conference, only approved members are allowed to join.
  65. */
  66. MEMBERS_ONLY_ERROR = 'conference.connectionError.membersOnly',
  67. /**
  68. * Indicates that a connection error is due to not allowed,
  69. * occurred when trying to join a conference.
  70. */
  71. NOT_ALLOWED_ERROR = 'conference.connectionError.notAllowed',
  72. /**
  73. * Indicates that offer/answer had failed.
  74. */
  75. OFFER_ANSWER_FAILED = 'conference.offerAnswerFailed',
  76. /**
  77. * Indicates that password cannot be set for this conference.
  78. */
  79. PASSWORD_NOT_SUPPORTED = 'conference.passwordNotSupported',
  80. /**
  81. * Indicates that a password is required in order to join the conference.
  82. */
  83. PASSWORD_REQUIRED = 'conference.passwordRequired',
  84. /**
  85. * Indicates that reservation system returned error.
  86. */
  87. RESERVATION_ERROR = 'conference.reservationError',
  88. /**
  89. * Indicates that a settings error occurred.
  90. */
  91. SETTINGS_ERROR = 'conference.settingsError',
  92. /**
  93. * Indicates that there is no available videobridge.
  94. */
  95. VIDEOBRIDGE_NOT_AVAILABLE = 'conference.videobridgeNotAvailable'
  96. }
  97. /**
  98. * Types that are passed for NOT_ALLOWED_ERROR.
  99. */
  100. export enum AUTH_ERROR_TYPES {
  101. GENERAL = 'general',
  102. NO_MAIN_PARTICIPANTS = 'no-main-participants',
  103. NO_VISITORS_LOBBY = 'no-visitors-lobby',
  104. PROMOTION_NOT_ALLOWED = 'promotion-not-allowed',
  105. ROOM_CREATION_RESTRICTION = 'room-creation-restriction'
  106. }
  107. // exported for backward compatibility
  108. export const AUTHENTICATION_REQUIRED = JitsiConferenceErrors.AUTHENTICATION_REQUIRED;
  109. export const CHAT_ERROR = JitsiConferenceErrors.CHAT_ERROR;
  110. export const SETTINGS_ERROR = JitsiConferenceErrors.SETTINGS_ERROR;
  111. export const CONFERENCE_DESTROYED = JitsiConferenceErrors.CONFERENCE_DESTROYED;
  112. export const CONFERENCE_MAX_USERS = JitsiConferenceErrors.CONFERENCE_MAX_USERS;
  113. export const CONNECTION_ERROR = JitsiConferenceErrors.CONNECTION_ERROR;
  114. export const CONFERENCE_RESTARTED = JitsiConferenceErrors.CONFERENCE_RESTARTED;
  115. export const NOT_ALLOWED_ERROR = JitsiConferenceErrors.NOT_ALLOWED_ERROR;
  116. export const MEMBERS_ONLY_ERROR = JitsiConferenceErrors.MEMBERS_ONLY_ERROR;
  117. export const CONFERENCE_ACCESS_DENIED = JitsiConferenceErrors.CONFERENCE_ACCESS_DENIED;
  118. export const DISPLAY_NAME_REQUIRED = JitsiConferenceErrors.DISPLAY_NAME_REQUIRED;
  119. export const FOCUS_DISCONNECTED = JitsiConferenceErrors.FOCUS_DISCONNECTED;
  120. export const FOCUS_LEFT = JitsiConferenceErrors.FOCUS_LEFT;
  121. export const GRACEFUL_SHUTDOWN = JitsiConferenceErrors.GRACEFUL_SHUTDOWN;
  122. export const ICE_FAILED = JitsiConferenceErrors.ICE_FAILED;
  123. export const INCOMPATIBLE_SERVER_VERSIONS = JitsiConferenceErrors.INCOMPATIBLE_SERVER_VERSIONS;
  124. export const OFFER_ANSWER_FAILED = JitsiConferenceErrors.OFFER_ANSWER_FAILED;
  125. export const PASSWORD_NOT_SUPPORTED = JitsiConferenceErrors.PASSWORD_NOT_SUPPORTED;
  126. export const PASSWORD_REQUIRED = JitsiConferenceErrors.PASSWORD_REQUIRED;
  127. export const RESERVATION_ERROR = JitsiConferenceErrors.RESERVATION_ERROR;
  128. export const VIDEOBRIDGE_NOT_AVAILABLE = JitsiConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE;