-
Notifications
You must be signed in to change notification settings - Fork 328
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: audio attachment reset to 0 issue and refinements #2903
Conversation
…ve into audio-attachment-fix
SDK Size
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the couple of nitpicks it looks good to me, it's a nice improvement ! 👍
package/src/components/ImageGallery/components/ImageGalleryVideoControl.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from the couple of comments it looks good !
…ve into audio-attachment-fix
🎉 This PR is included in version 6.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
The goal of the PR is to fix the issue where when the audio attachment play reached the end, it didn't reset to 0. The PR also introduces a hook,
useAudioPlayer,
that handles and exposes functions for easy usage in the code, making the code cleaner. I have improved the progress bar and the waveform progress bar to return and intercept to progress in the range 0-1 which makes the handling simpler.