Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

172
Vistas
How To Set Portrait Or Full Height To A Video Element

I have a project to capture an ID card with a camera and there's an additional guideline for that ID card, so I have to call a custom camera from my Angular.

When I use input with the capture attribute:

<input
  #inputCamera
  type="file"
  capture="environment"
  [accept]="state.model.allowedExtension"
  (change)="handleChange($event)"
  hidden
/>

I can't custom it to look like this:

enter image description here

So, I decide to make my own with thirdparty. But the problem is that video element always in landscape position, so it will looks like this:

enter image description here

So, how to make it full portrait position from that video element? Because I've been try with css but it's only working on style, when I try to capture an image, it still landscape position.

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

have you tried passing constraints to getUserMedia?

navigator.mediaDevices.getUserMedia({
  video: { width: 720, height: 1280 }
})
.then(function(stream) {
  /* use the stream */
})
.catch(function(err) {
  /* handle the error */
});
about 4 years ago · Santiago Gelvez Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda