Git Product home page Git Product logo

Comments (10)

ai avatar ai commented on September 28, 2024 1

Sorry, I don't know how to solve it with MediaRecorder API. Use a different library.

from audio-recorder-polyfill.

ai avatar ai commented on September 28, 2024

I think your bug can be solved by this comment #4 (comment)

Safari allows creating Media Recorder only in the event handler.

from audio-recorder-polyfill.

arj-ary avatar arj-ary commented on September 28, 2024

Still doesn't work for me. I am creating Media Recorder in the event handler (see below)

navigator.mediaDevices.getUserMedia({ audio: true, video: false })
.then(this.record);

record = (stream) => {
this.recorder = new MediaRecorder(stream);
this.recorder.addEventListener('dataavailable', this.onRecordingReady);
}

from audio-recorder-polyfill.

ai avatar ai commented on September 28, 2024

Did you try this hack? https://github.com/alecglassford/audio-recorder-polyfill/tree/working-safari-hack

That comment says that you need to change audio-recorder-polyfill and can’t be compatible with MediaRecorder API.

from audio-recorder-polyfill.

arj-ary avatar arj-ary commented on September 28, 2024

I have, opened their demo link in Safari - version 12.x it doesn't work. The audio just displays an error. I am not able to Create an issue on their page, no idea why.

from audio-recorder-polyfill.

ai avatar ai commented on September 28, 2024

What their demo? (Maybe it was my demo?)

from audio-recorder-polyfill.

arj-ary avatar arj-ary commented on September 28, 2024

Demo: - https://ai.github.io/audio-recorder-polyfill/
Correct, that demo link fails to play audio when opened in Safari.

from audio-recorder-polyfill.

ai avatar ai commented on September 28, 2024

It is my demo, not the demo of their fork

from audio-recorder-polyfill.

arj-ary avatar arj-ary commented on September 28, 2024

Anyway, the hack that you mentioned here https://github.com/alecglassford/audio-recorder-polyfill/tree/working-safari-hack does not work either. I tried changing the window.MediaRecorder = require('audio-recorder-polyfill')

Still doesn't work on Safari 12.x

from audio-recorder-polyfill.

arj-ary avatar arj-ary commented on September 28, 2024

The issue specifically with that hack is the audio file recorded is just 44 bytes and zero duration. So basically that file is empty.

from audio-recorder-polyfill.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.