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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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: {
  17. AUDIO: MediaType;
  18. SCREENSHARE: MediaType;
  19. VIDEO: MediaType;
  20. } = {
  21. AUDIO: 'audio',
  22. SCREENSHARE: 'screenshare',
  23. VIDEO: 'video'
  24. };
  25. /* eslint-disable no-bitwise */
  26. /**
  27. * The types of authorities which may mute/unmute the local screenshare.
  28. *
  29. * @enum {number}
  30. */
  31. export const SCREENSHARE_MUTISM_AUTHORITY = {
  32. AUDIO_ONLY: 1 << 0,
  33. USER: 1 << 2
  34. };
  35. /**
  36. * The languages supported for audio files.
  37. */
  38. export enum AudioSupportedLanguage {
  39. en = 'en',
  40. fr = 'fr',
  41. frCA = 'frCA'
  42. }
  43. /**
  44. * The types of authorities which may mute/unmute the local video.
  45. *
  46. * @enum {number}
  47. */
  48. export const VIDEO_MUTISM_AUTHORITY = {
  49. AUDIO_ONLY: 1 << 0,
  50. BACKGROUND: 1 << 1,
  51. USER: 1 << 2,
  52. CAR_MODE: 1 << 3,
  53. SCREEN_SHARE: 1 << 4
  54. };
  55. /* eslint-enable no-bitwise */
  56. /**
  57. * The types of video tracks.
  58. *
  59. * @enum {string}
  60. */
  61. export const VIDEO_TYPE: { [key: string]: VideoType; } = {
  62. CAMERA: 'camera',
  63. DESKTOP: 'desktop'
  64. };
  65. export type VideoType = 'camera' | 'desktop';