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

JitsiTrackErrors.js 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /**
  2. * The errors for the JitsiTrack objects.
  3. */
  4. /**
  5. * Generic error for jidesha extension for Chrome.
  6. */
  7. export const CHROME_EXTENSION_GENERIC_ERROR
  8. = 'gum.chrome_extension_generic_error';
  9. /**
  10. * An error which indicates that the jidesha extension for Chrome is
  11. * failed to install.
  12. */
  13. export const CHROME_EXTENSION_INSTALLATION_ERROR
  14. = 'gum.chrome_extension_installation_error';
  15. /**
  16. * An error which indicates that user canceled screen sharing window
  17. * selection dialog in jidesha extension for Chrome.
  18. */
  19. export const CHROME_EXTENSION_USER_CANCELED
  20. = 'gum.chrome_extension_user_canceled';
  21. /**
  22. * An error which indicates that some of requested constraints in
  23. * getUserMedia call were not satisfied.
  24. */
  25. export const CONSTRAINT_FAILED = 'gum.constraint_failed';
  26. /**
  27. * A generic error which indicates an error occurred while selecting
  28. * a DesktopCapturerSource from the electron app.
  29. */
  30. export const ELECTRON_DESKTOP_PICKER_ERROR
  31. = 'gum.electron_desktop_picker_error';
  32. /**
  33. * An error which indicates a custom desktop picker could not be detected
  34. * for the electron app.
  35. */
  36. export const ELECTRON_DESKTOP_PICKER_NOT_FOUND
  37. = 'gum.electron_desktop_picker_not_found';
  38. /**
  39. * An error which indicates that the jidesha extension for Firefox is
  40. * needed to proceed with screen sharing, and that it is not installed.
  41. */
  42. export const FIREFOX_EXTENSION_NEEDED = 'gum.firefox_extension_needed';
  43. /**
  44. * Generic getUserMedia error.
  45. */
  46. export const GENERAL = 'gum.general';
  47. /**
  48. * An error which indicates that requested device was not found.
  49. */
  50. export const NOT_FOUND = 'gum.not_found';
  51. /**
  52. * An error which indicates that user denied permission to share requested
  53. * device.
  54. */
  55. export const PERMISSION_DENIED = 'gum.permission_denied';
  56. /**
  57. * An error which indicates that track has been already disposed and cannot
  58. * be longer used.
  59. */
  60. export const TRACK_IS_DISPOSED = 'track.track_is_disposed';
  61. /**
  62. * An error which indicates that track is currently in progress of muting or
  63. * unmuting itself.
  64. */
  65. export const TRACK_MUTE_UNMUTE_IN_PROGRESS = 'track.mute_unmute_inprogress';
  66. /**
  67. * An error which indicates that track has no MediaStream associated.
  68. */
  69. export const TRACK_NO_STREAM_FOUND = 'track.no_stream_found';
  70. /**
  71. * An error which indicates that requested video resolution is not supported
  72. * by a webcam.
  73. */
  74. export const UNSUPPORTED_RESOLUTION = 'gum.unsupported_resolution';
  75. /**
  76. * Indicates that the track is no receiving any data without reason(the
  77. * stream was stopped, etc)
  78. */
  79. export const NO_DATA_FROM_SOURCE = 'track.no_data_from_source';