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

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