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.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 has no MediaStream associated.
  72. */
  73. export const TRACK_NO_STREAM_FOUND = 'track.no_stream_found';
  74. /**
  75. * An error which indicates that requested video resolution is not supported
  76. * by a webcam.
  77. */
  78. export const UNSUPPORTED_RESOLUTION = 'gum.unsupported_resolution';