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

234
Vistas
Why is the audio I recorded infinite in length (js) ? 435:13:24

Look at this,

my audio

I have used the following package https://www.npmjs.com/package/ng-audio-recorder

And the following code is also following the example in the documentation

  stopRecording() {
    this.recorderState = RecorderState.STOPPING;
    this.cdRef.detectChanges();
    this.audioRecorderService
      .stopRecording(OutputFormat.WEBM_BLOB)
      .then((outputBlob: Blob) => {
        if (outputBlob) {
          this.currentBlob = outputBlob;
          this.currentBlobUrl = URL.createObjectURL(outputBlob);
          this.recorderState = this.audioRecorderService.getRecorderState();
          this.cdRef.detectChanges();
        }
      })
      .catch(errrorCase => {
        console.log(errrorCase);
      });
  }

What am I doing wrong?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

When you record audio using js, it is recorded as a stream of data. In my experience, all the streams behave like this in most of the audio/video players and only some of them were able to figure out the actual length. I suppose it is because the streams lack the metadata that gives the right information about these. Some players that managed to get the right information were professional editing tools, and I assume they somehow estimated the length with some other way. I really don't have any documentation that supports this reasoning but this is my best guess.

Edit: Turns out my assumptions were right and you can fix this by using this library I found on Github. Credits to daniel

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