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.ts 1.1KB

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