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.

constants.js 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // @flow
  2. /**
  3. * The set of facing modes for camera.
  4. *
  5. * @enum {string}
  6. */
  7. export const CAMERA_FACING_MODE = {
  8. ENVIRONMENT: 'environment',
  9. USER: 'user'
  10. };
  11. export type MediaType = 'audio' | 'video' | 'presenter' | 'screenshare';
  12. /**
  13. * The set of media types.
  14. *
  15. * @enum {string}
  16. */
  17. export const MEDIA_TYPE = {
  18. AUDIO: 'audio',
  19. PRESENTER: 'presenter',
  20. SCREENSHARE: 'screenshare',
  21. VIDEO: 'video'
  22. };
  23. /* eslint-disable no-bitwise */
  24. /**
  25. * The types of authorities which may mute/unmute the local screenshare.
  26. *
  27. * @enum {number}
  28. */
  29. export const SCREENSHARE_MUTISM_AUTHORITY = {
  30. AUDIO_ONLY: 1 << 0,
  31. USER: 1 << 2
  32. };
  33. /**
  34. * The types of authorities which may mute/unmute the local video.
  35. *
  36. * @enum {number}
  37. */
  38. export const VIDEO_MUTISM_AUTHORITY = {
  39. AUDIO_ONLY: 1 << 0,
  40. BACKGROUND: 1 << 1,
  41. USER: 1 << 2
  42. };
  43. /* eslint-enable no-bitwise */
  44. /**
  45. * The types of video tracks.
  46. *
  47. * @enum {string}
  48. */
  49. export const VIDEO_TYPE = {
  50. CAMERA: 'camera',
  51. DESKTOP: 'desktop'
  52. };