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 717B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. /**
  11. * The set of media types.
  12. *
  13. * @enum {string}
  14. */
  15. export const MEDIA_TYPE = {
  16. AUDIO: 'audio',
  17. PRESENTER: 'presenter',
  18. VIDEO: 'video'
  19. };
  20. /* eslint-disable no-bitwise */
  21. /**
  22. * The types of authorities which may mute/unmute the local video.
  23. *
  24. * @enum {number}
  25. */
  26. export const VIDEO_MUTISM_AUTHORITY = {
  27. AUDIO_ONLY: 1 << 0,
  28. BACKGROUND: 1 << 1,
  29. USER: 1 << 2
  30. };
  31. /* eslint-enable no-bitwise */
  32. /**
  33. * The types of video tracks.
  34. *
  35. * @enum {string}
  36. */
  37. export const VIDEO_TYPE = {
  38. CAMERA: 'camera',
  39. DESKTOP: 'desktop'
  40. };