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

224
Vistas
MediaRecorder, get partial videos on interval during recording?

I am using MediaRecorder to record the screen on a browser.

At the end of the session the video is uploaded to the server.

To make the process more error-proof I would like to upload partial videos on intervals instead of only one big file at the end.

I have tried something like this:

const handleRecord = function ({stream}) {    
  const mediaRecorder = new MediaRecorder(stream);

  mediaRecorder.ondataavailable = function (e) {
    uploadVideoPart(e.data); // Upload to server
  };

  mediaRecorder.start(10000); // 10 seconds
}; 

But the upload videos are corrupted.

The first one is possible to be reproduced but there is warning:

[matroska,webm @ 0x7fa5e580ec00] File ended prematurely at pos. 1060573 (0x102edd)

The rest of the videos are totally corrupted.

Looks like there is a special blob at the beginning and at the end that prevents me to do upload partial videos.

How can I handle partial videos using MediaRecorder ?

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