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

Fix: [Record] a default value for constant bit rate #3153

Merged
merged 2 commits into from
Aug 31, 2023
Merged

Conversation

katspaugh
Copy link
Owner

Short description

Resolves #3049

Implementation details

If audioBitsPerSecond isn't specified, the browser will record audio with a variable bit rate (VBR) which wavesurfer has trouble decoding. So I've added a default value for MediaRecorder's audioBitsPerSecond parameter which makes it record with a constant bit rate.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Aug 31, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: a728263
Status: ✅  Deploy successful!
Preview URL: https://7ef14403.wavesurfer-js.pages.dev
Branch Preview URL: https://record-cbr.wavesurfer-js.pages.dev

View logs

@github-actions
Copy link
Contributor

github-actions bot commented Aug 31, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 1 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@katspaugh katspaugh merged commit 6294c32 into main Aug 31, 2023
4 checks passed
@katspaugh katspaugh deleted the record-cbr branch August 31, 2023 19:38
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.

Wave made by record plugin not playing full audio
1 participant