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

152
Views
getUserMedia mediaRecorder how to convert event.data from safari

This question is about event.data returned by SAFARI

CONTEXT : something like this tutorial https://webkit.org/blog/11353/mediarecorder-api/

navigator.mediaDevices.getUserMedia( {  audio: true, video: true } ).then( successCallback, errorCallback );

function successCallback(stream) { window.stream = stream; gumVideo.srcObject = stream; }

function handleDataAvailable(event) { console.log(event.data); ...code to send to server... }

function startRecording() {
  try { mediaRecorder = new MediaRecorder(window.stream); } catch (e0) { return false; }
  mediaRecorder.ondataavailable = handleDataAvailable; mediaRecorder.start(3000); 
}

IN SAFARI THE LOG Blob {size: 0, type: "", slice: function, stream: function, text: function, …}Blob

IN CHROME THE LOG data: Blob {size: 11985, type: 'video/x-matroska;codecs=avc1,opus'}

so WHY event.data in safari is EMPTY ?????

Is there a way to convert to string to base64 ?

about 4 years ago · Santiago Trujillo
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!