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: allow "playing" WebAudioPlayer w/o a URL #3585

Merged
merged 2 commits into from
Mar 9, 2024
Merged

Conversation

katspaugh
Copy link
Owner

Short description

Resolves #3575

Implementation details

Two fixes for the WebAudioPlayer:

  • The seeking event is now emitted after currentTime is set to a new value
  • Allow starting a playback without an src
  • Pass a custom pre-calculated duration if audio src is not set

This effectively allows visually "playing" pre-decoded peaks and duration without an audio URL using the WebAudioPlayer.

Copy link
Contributor

github-actions bot commented Mar 9, 2024

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 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

Copy link

cloudflare-workers-and-pages bot commented Mar 9, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: a6afe43
Status: ✅  Deploy successful!
Preview URL: https://45f5511c.wavesurfer-js.pages.dev
Branch Preview URL: https://fix-webaudio-play.wavesurfer-js.pages.dev

View logs

@katspaugh katspaugh merged commit e32e519 into main Mar 9, 2024
4 checks passed
@katspaugh katspaugh deleted the fix-webaudio-play branch March 9, 2024 10:29
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.

Seeking and playing with an empty audio
1 participant