You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

JitsiTrackErrors.js 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. * This error indicates that the attempt to start screensharing was initiated by
  17. * a script which did not originate in user gesture handler. It means that
  18. * you should to trigger the action again in response to a button click for
  19. * example.
  20. * @type {string}
  21. */
  22. export const CHROME_EXTENSION_USER_GESTURE_REQUIRED
  23. = 'gum.chrome_extension_user_gesture_required';
  24. /**
  25. * An error which indicates that user canceled screen sharing window
  26. * selection dialog in jidesha extension for Chrome.
  27. */
  28. export const CHROME_EXTENSION_USER_CANCELED
  29. = 'gum.chrome_extension_user_canceled';
  30. /**
  31. * An error which indicates that some of requested constraints in
  32. * getUserMedia call were not satisfied.
  33. */
  34. export const CONSTRAINT_FAILED = 'gum.constraint_failed';
  35. /**
  36. * A generic error which indicates an error occurred while selecting
  37. * a DesktopCapturerSource from the electron app.
  38. */
  39. export const ELECTRON_DESKTOP_PICKER_ERROR
  40. = 'gum.electron_desktop_picker_error';
  41. /**
  42. * An error which indicates a custom desktop picker could not be detected
  43. * for the electron app.
  44. */
  45. export const ELECTRON_DESKTOP_PICKER_NOT_FOUND
  46. = 'gum.electron_desktop_picker_not_found';
  47. /**
  48. * An error which indicates that the jidesha extension for Firefox is
  49. * needed to proceed with screen sharing, and that it is not installed.
  50. */
  51. export const FIREFOX_EXTENSION_NEEDED = 'gum.firefox_extension_needed';
  52. /**
  53. * Generic getUserMedia error.
  54. */
  55. export const GENERAL = 'gum.general';
  56. /**
  57. * An error which indicates that requested device was not found.
  58. */
  59. export const NOT_FOUND = 'gum.not_found';
  60. /**
  61. * An error which indicates that user denied permission to share requested
  62. * device.
  63. */
  64. export const PERMISSION_DENIED = 'gum.permission_denied';
  65. /**
  66. * An error which indicates that track has been already disposed and cannot
  67. * be longer used.
  68. */
  69. export const TRACK_IS_DISPOSED = 'track.track_is_disposed';
  70. /**
  71. * An error which indicates that track is currently in progress of muting or
  72. * unmuting itself.
  73. */
  74. export const TRACK_MUTE_UNMUTE_IN_PROGRESS = 'track.mute_unmute_inprogress';
  75. /**
  76. * An error which indicates that track has no MediaStream associated.
  77. */
  78. export const TRACK_NO_STREAM_FOUND = 'track.no_stream_found';
  79. /**
  80. * An error which indicates that requested video resolution is not supported
  81. * by a webcam.
  82. */
  83. export const UNSUPPORTED_RESOLUTION = 'gum.unsupported_resolution';
  84. /**
  85. * Indicates that the track is no receiving any data without reason(the
  86. * stream was stopped, etc)
  87. */
  88. export const NO_DATA_FROM_SOURCE = 'track.no_data_from_source';