Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

JitsiConferenceErrors.ts 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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 a connection error occurred when trying to join a conference.
  28. */
  29. CONNECTION_ERROR = 'conference.connectionError',
  30. /**
  31. * Indicates that the display name is required when joining the room.
  32. * There are cases like lobby room where display name is required.
  33. * @param {boolean|null} lobby whether the error is because lobby is enabled.
  34. */
  35. DISPLAY_NAME_REQUIRED = 'conference.display_name_required',
  36. /**
  37. * Indicates that focus error happened.
  38. */
  39. FOCUS_DISCONNECTED = 'conference.focusDisconnected',
  40. /**
  41. * Indicates that focus left the conference.
  42. */
  43. FOCUS_LEFT = 'conference.focusLeft',
  44. /**
  45. * Indicates that graceful shutdown happened.
  46. */
  47. GRACEFUL_SHUTDOWN = 'conference.gracefulShutdown',
  48. /**
  49. * Indicates that the media connection has failed.
  50. */
  51. ICE_FAILED = 'conference.iceFailed',
  52. /**
  53. * Indicates that the versions of the server side components are incompatible
  54. * with the client side.
  55. */
  56. INCOMPATIBLE_SERVER_VERSIONS = 'conference.incompatible_server_versions',
  57. /**
  58. * Indicates that a connection error is due to not allowed,
  59. * occurred when trying to join a conference, only approved members are allowed to join.
  60. */
  61. MEMBERS_ONLY_ERROR = 'conference.connectionError.membersOnly',
  62. /**
  63. * Indicates that a connection error is due to not allowed,
  64. * occurred when trying to join a conference.
  65. */
  66. NOT_ALLOWED_ERROR = 'conference.connectionError.notAllowed',
  67. /**
  68. * Indicates that offer/answer had failed.
  69. */
  70. OFFER_ANSWER_FAILED = 'conference.offerAnswerFailed',
  71. /**
  72. * Indicates that password cannot be set for this conference.
  73. */
  74. PASSWORD_NOT_SUPPORTED = 'conference.passwordNotSupported',
  75. /**
  76. * Indicates that a password is required in order to join the conference.
  77. */
  78. PASSWORD_REQUIRED = 'conference.passwordRequired',
  79. /**
  80. * Indicates that reservation system returned error.
  81. */
  82. RESERVATION_ERROR = 'conference.reservationError',
  83. /**
  84. * Indicates that a settings error occurred.
  85. */
  86. SETTINGS_ERROR = 'conference.settingsError',
  87. /**
  88. * Indicates that there is no available videobridge.
  89. */
  90. VIDEOBRIDGE_NOT_AVAILABLE = 'conference.videobridgeNotAvailable'
  91. }
  92. /**
  93. * Types that are passed for NOT_ALLOWED_ERROR.
  94. */
  95. export enum AUTH_ERROR_TYPES {
  96. GENERAL = 'general',
  97. NO_MAIN_PARTICIPANTS = 'no-main-participants',
  98. NO_VISITORS_LOBBY = 'no-visitors-lobby',
  99. PROMOTION_NOT_ALLOWED = 'promotion-not-allowed',
  100. ROOM_CREATION_RESTRICTION = 'room-creation-restriction'
  101. }
  102. // exported for backward compatibility
  103. export const AUTHENTICATION_REQUIRED = JitsiConferenceErrors.AUTHENTICATION_REQUIRED;
  104. export const CHAT_ERROR = JitsiConferenceErrors.CHAT_ERROR;
  105. export const SETTINGS_ERROR = JitsiConferenceErrors.SETTINGS_ERROR;
  106. export const CONFERENCE_DESTROYED = JitsiConferenceErrors.CONFERENCE_DESTROYED;
  107. export const CONFERENCE_MAX_USERS = JitsiConferenceErrors.CONFERENCE_MAX_USERS;
  108. export const CONNECTION_ERROR = JitsiConferenceErrors.CONNECTION_ERROR;
  109. export const NOT_ALLOWED_ERROR = JitsiConferenceErrors.NOT_ALLOWED_ERROR;
  110. export const MEMBERS_ONLY_ERROR = JitsiConferenceErrors.MEMBERS_ONLY_ERROR;
  111. export const CONFERENCE_ACCESS_DENIED = JitsiConferenceErrors.CONFERENCE_ACCESS_DENIED;
  112. export const DISPLAY_NAME_REQUIRED = JitsiConferenceErrors.DISPLAY_NAME_REQUIRED;
  113. export const FOCUS_DISCONNECTED = JitsiConferenceErrors.FOCUS_DISCONNECTED;
  114. export const FOCUS_LEFT = JitsiConferenceErrors.FOCUS_LEFT;
  115. export const GRACEFUL_SHUTDOWN = JitsiConferenceErrors.GRACEFUL_SHUTDOWN;
  116. export const ICE_FAILED = JitsiConferenceErrors.ICE_FAILED;
  117. export const INCOMPATIBLE_SERVER_VERSIONS = JitsiConferenceErrors.INCOMPATIBLE_SERVER_VERSIONS;
  118. export const OFFER_ANSWER_FAILED = JitsiConferenceErrors.OFFER_ANSWER_FAILED;
  119. export const PASSWORD_NOT_SUPPORTED = JitsiConferenceErrors.PASSWORD_NOT_SUPPORTED;
  120. export const PASSWORD_REQUIRED = JitsiConferenceErrors.PASSWORD_REQUIRED;
  121. export const RESERVATION_ERROR = JitsiConferenceErrors.RESERVATION_ERROR;
  122. export const VIDEOBRIDGE_NOT_AVAILABLE = JitsiConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE;