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 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /**
  2. * The errors for the JitsiTrack objects.
  3. */
  4. /**
  5. * An error which indicates that some of requested constraints in
  6. * getUserMedia call were not satisfied.
  7. */
  8. export const CONSTRAINT_FAILED = 'gum.constraint_failed';
  9. /**
  10. * A generic error which indicates an error occurred while selecting
  11. * a DesktopCapturerSource from the electron app.
  12. */
  13. export const ELECTRON_DESKTOP_PICKER_ERROR
  14. = 'gum.electron_desktop_picker_error';
  15. /**
  16. * An error which indicates a custom desktop picker could not be detected
  17. * for the electron app.
  18. */
  19. export const ELECTRON_DESKTOP_PICKER_NOT_FOUND
  20. = 'gum.electron_desktop_picker_not_found';
  21. /**
  22. * Generic getUserMedia error.
  23. */
  24. export const GENERAL = 'gum.general';
  25. /**
  26. * An error which indicates that requested device was not found.
  27. */
  28. export const NOT_FOUND = 'gum.not_found';
  29. /**
  30. * An error which indicates that user denied permission to share requested
  31. * device.
  32. */
  33. export const PERMISSION_DENIED = 'gum.permission_denied';
  34. /**
  35. * Generic error for screensharing failure.
  36. */
  37. export const SCREENSHARING_GENERIC_ERROR
  38. = 'gum.screensharing_generic_error';
  39. /**
  40. * An error which indicates that user canceled screen sharing window
  41. * selection dialog.
  42. */
  43. export const SCREENSHARING_USER_CANCELED
  44. = 'gum.screensharing_user_canceled';
  45. /**
  46. * Indicates that the timeout passed to the obtainAudioAndVideoPermissions has expired without GUM resolving.
  47. */
  48. export const TIMEOUT = 'gum.timeout';
  49. /**
  50. * An error which indicates that track has been already disposed and cannot
  51. * be longer used.
  52. */
  53. export const TRACK_IS_DISPOSED = 'track.track_is_disposed';
  54. /**
  55. * An error which indicates that track has no MediaStream associated.
  56. */
  57. export const TRACK_NO_STREAM_FOUND = 'track.no_stream_found';
  58. /**
  59. * An error which indicates that requested video resolution is not supported
  60. * by a webcam.
  61. */
  62. export const UNSUPPORTED_RESOLUTION = 'gum.unsupported_resolution';