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

123456789101112131415161718192021
  1. /* global module */
  2. /**
  3. * Possible camera facing modes. For now support only 'user' and 'environment'
  4. * modes as 'left' and 'right' and not used anywhere right at the moment.
  5. * For more info see
  6. * https://w3c.github.io/mediacapture-main/getusermedia.html#def-constraint-facingMode
  7. *
  8. * @enum {string}
  9. */
  10. var CameraFacingMode = {
  11. /**
  12. * The user facing camera mode.
  13. */
  14. USER: "user",
  15. /**
  16. * The environment facing camera mode.
  17. */
  18. ENVIRONMENT: "environment"
  19. };
  20. module.exports = CameraFacingMode;