Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

150
Views
Mediafile that I recored by using `mediaDevices` doesn't persist

I get mediaDevices file like below code.

  AudioBtn.innerText = "Stop Audio Recording";
  AudioBtn.removeEventListener("click", handleAudioStart);
  AudioBtn.addEventListener("click", handleAudioStop);
  stream = await navigator.mediaDevices.getUserMedia({
    audio: true,
    video: false,
  });
  recordAudio.srcObject = stream;
  recordAudio.play();
  recorder = new MediaRecorder(stream);
  recorder.ondataavailable = (event) => {
    videoFile = URL.createObjectURL(event.data);
    recordAudio.srcObject = null;
    recordAudio.src = videoFile;
    recordAudio.play();
  };

And I make my homepage to autoplay this URL. Immediately after I record video, it works.

But when I re-visit the homepage, this link is not accessible.

this link that I get from it is this: -> blob:http://localhost:4000/fc7229a2-a739-4ee6-b04a-c4d41afa9e7e.

When I click this link, it says it's blocked.

Why it happens? and how can I make it persisted for long?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!