Comments (10)
Sorry, I don't know how to solve it with MediaRecorder API. Use a different library.
from audio-recorder-polyfill.
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.
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.
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.
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.
What their demo? (Maybe it was my demo?)
from audio-recorder-polyfill.
Demo: - https://ai.github.io/audio-recorder-polyfill/
Correct, that demo link fails to play audio when opened in Safari.
from audio-recorder-polyfill.
It is my demo, not the demo of their fork
from audio-recorder-polyfill.
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.
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)
- Using in angular HOT 1
- Deprecated warning for the 'ScriptProcessorNode' HOT 8
- Microphone resource not released after stopping HOT 2
- MP3 Bitrate HOT 1
- MP3 encoder seems to record at ~90% normal speed? HOT 3
- this.requestData is not a function HOT 3
- No sound on iOS Safari. HOT 2
- Video support HOT 3
- No request for microphone in Chrome mobile browser. Uncaught (in promise) DOMException: Permission denied HOT 8
- No ES module in v0.3.7 npm package? HOT 1
- Content Security Policy Issue HOT 2
- How Convert base 64? HOT 1
- Integration into a Angular project HOT 1
- testing this on safari on guest mac on vmware HOT 1
- More complete OOG encode example HOT 7
- MimeType 'audio/wav' since no more supported by Safari Preview 117 HOT 2
- How to integrate with NEXT JS HOT 3
- Not working on iOS Safari HOT 3
- Stop event never dispatched HOT 3
- Using chunked recording only yields header with duration of the first blob. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audio-recorder-polyfill.