Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use polyfill for MediaRecorder when the interface is not available #25

Merged
merged 4 commits into from
Sep 25, 2020

Conversation

dontcallmedom
Copy link
Owner

Restarting from #21 to address #24 with conflicts resolved; needs to add user-activation and load streamlining

@dontcallmedom dontcallmedom changed the base branch from safari-compat to main September 23, 2020 09:19
This update makes a number of changes for the recorder to run under Safari:
1. Playback of the reference audio now uses the Web Audio API to avoid running
in situations where Safari expects a user activation
2. For consistency, the Web Audio API is used everywhere, allowing to use
classic record / play / pause / stop buttons throughout.
3. To allow early tests of the recording (and ease debugging), the recorded
audio can be played back even if it's incomplete (but only complete recordings
can be updated)
4. A few hacks/workarounds were added, identified by "Safari compat notes"
comments in the code
@tidoust tidoust marked this pull request as ready for review September 24, 2020 18:33
package.json Outdated Show resolved Hide resolved
public/recorder.js Show resolved Hide resolved
public/recorder.js Show resolved Hide resolved
public/recorder.js Show resolved Hide resolved
public/recorder.js Outdated Show resolved Hide resolved
public/recorder.js Show resolved Hide resolved
@dontcallmedom dontcallmedom merged commit c6c6f39 into main Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants