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.

CameraFacingMode.js 608B

12345678910111213141516171819202122
  1. /**
  2. * The possible camera facing modes. For now support only 'user' and
  3. * 'environment' because 'left' and 'right' are not used anywhere in our
  4. * projects at the time of this writing. For more information please refer to
  5. * https://w3c.github.io/mediacapture-main/getusermedia.html
  6. * #def-constraint-facingMode.
  7. *
  8. * @enum {string}
  9. */
  10. const CameraFacingMode = {
  11. /**
  12. * The mode which specifies the environment-facing camera.
  13. */
  14. ENVIRONMENT: 'environment',
  15. /**
  16. * The mode which specifies the user-facing camera.
  17. */
  18. USER: 'user'
  19. };
  20. module.exports = CameraFacingMode;