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

JitsiConferenceErrors.ts 5.0KB

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