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' | 'presenter' | '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. PRESENTER: 'presenter',
  19. SCREENSHARE: 'screenshare',
  20. VIDEO: 'video'
  21. };
  22. /* eslint-disable no-bitwise */
  23. /**
  24. * The types of authorities which may mute/unmute the local screenshare.
  25. *
  26. * @enum {number}
  27. */
  28. export const SCREENSHARE_MUTISM_AUTHORITY = {
  29. AUDIO_ONLY: 1 << 0,
  30. USER: 1 << 2
  31. };
  32. /**
  33. * The types of authorities which may mute/unmute the local video.
  34. *
  35. * @enum {number}
  36. */
  37. export const VIDEO_MUTISM_AUTHORITY = {
  38. AUDIO_ONLY: 1 << 0,
  39. BACKGROUND: 1 << 1,
  40. USER: 1 << 2,
  41. CAR_MODE: 1 << 3
  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';