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

116
Vistas
Restrict video duration from file input with capture attribute

I'm using the following input code to allow mobile users to upload a video file into my webpage.

            <input
                type="file"
                capture
                id={'videoInput'}
                accept="video/*"
                onChange={handleChangeMediaFile}
            />

The only restriction I have is that the video should not be longer than 1 minute. I know that I can validate the video inside handleChangeMediaFile func and show a corresponding error to the user but that doesn't look like a very user-friendly solution to me.

Is it possible to split the video file that I receive in handleChangeMediaFile into multiple playable chunks and then upload them as separate videos? If that's impossible, is there a way to automatically trim the video down to 60 seconds if it exceeds the limit?

about 4 years ago · Juan Pablo Isaza
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