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

219
Views
safari recorded video speed up issue in angular 8

I have implemented the WebRTC in my angular project to record the video. And after the save we can send it to the attachment. This is working fine in windows OS properly, but in mac safari, the video is speed up and 30-sec video becomes 3 sec only. this occurs only in safari.

Here on start the video.

  mediaDevices.getUserMedia({ video: true, audio: true })
  .then(webcamStream => {
    this.webcamStream = webcamStream;
  })

The MediaRecorder code:

this.recorder = new MediaRecorder(this.webcamStream, {mimeType: 'video/mp4'});
this.recorder.onstart = () => 
    this.zone.run(() => {
      this.behaviorService.isRecording(true); 
    });
this.recorder.onstop = this.onRecorderStopped;
this.recorder.ondataavailable = (event) => 
    this.zone.run(() => { 
      this.data = [...this.data, event.data]; 
  }); 
this.recorder.start();

When video is stopped then it save in video/webm;codecs=h264 this mimeType. I have also tried with video/mp4 but it also not working

Can I get any solution that works in both OS?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Safari is notoriously broken with respect to .getUserMedia() and the MediaRecorder class.

Can i get the any solution which works in both OS?

Not yet. Pester Apple. In the meantime use Chrome on MacOS: it works.

There may be some tricks to recommend to make this better. But you didn't show us your MediaRecorder code: that's where the stream is compressed.

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