-
Notifications
You must be signed in to change notification settings - Fork 434
Fix image audio #1012
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
Open
Feeh03114
wants to merge
30
commits into
chatwoot:develop
Choose a base branch
from
Feeh03114:fix_image_audio
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fix image audio #1012
Changes from 24 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
4093c6b
feat(attachments): improve image and audio bubble handling
Feeh03114 5fabb83
refactor(attachments): remove platform-specific ImageBubble files
Feeh03114 92404ef
fix: att ignore
Feeh03114 3d82596
feat(audio): improve audio bubble and cell type safety
Feeh03114 9f21e18
fix(message): Safely access message status in ComposedBubble
Feeh03114 d9192a9
feat(audio): apply visual refinements to AudioBubble
Feeh03114 410c9e8
revert(audio): revert visual design changes in AudioBubble
Feeh03114 cbb41f5
feat(audio): implement robust audio playback with expo-av
Feeh03114 7761306
fix(audio): enhance PlayerHub stability and HMR compatibility
Feeh03114 b867ea1
docs: update PULL_REQUEST_TEMPLATE.md with audio feature details
Feeh03114 c3735c9
docs: add comments to audio playback components
Feeh03114 20eac43
docs: add comments to ImageBubble component
Feeh03114 1439716
docs: finalize PULL_REQUEST_TEMPLATE.md checklist
Feeh03114 c6f7516
Revert "docs: finalize PULL_REQUEST_TEMPLATE.md checklist"
Feeh03114 52de3d5
Reapply "docs: finalize PULL_REQUEST_TEMPLATE.md checklist"
Feeh03114 f019d89
Revert "docs: update PULL_REQUEST_TEMPLATE.md with audio feature deta…
Feeh03114 d584ac9
feat(video): implement dynamic video sizing and add comments to Video…
Feeh03114 83c7237
fix(video): resolve naturalSize TypeScript error in VideoBubble
Feeh03114 1ea7008
fix(video): import AVPlaybackStatusLoaded to resolve TypeScript error
Feeh03114 3e299e5
fix(video): resolve AVPlaybackStatusLoaded type issue by casting to a…
Feeh03114 20c85e0
fix(video): prevent redundant video size calculations in VideoBubble
Feeh03114 eb579fc
docs: update comments in VideoBubble.tsx for new sizing logic and add…
Feeh03114 87c4663
feat(video): pass width prop to VideoBubble in ComposedBubble
Feeh03114 a82ba44
fix(audio): unify audio playback keying scheme for AudioCell and Audi…
Feeh03114 95a65ad
fix: resizeMode video
Feeh03114 f22c5f9
fix: max height video
Feeh03114 f0adf25
fix(audio): route convertAacToWav to iOS implementation for voice rec…
Feeh03114 3e25f06
fix(audio): ensure slider knob resets correctly when switching audio …
Feeh03114 966f611
fix(audio): add error logging and handling for slider interactions
Feeh03114 f42e589
fix(audio): remove Reanimated worklet wrappers for slider interaction…
Feeh03114 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -190,4 +190,4 @@ | |
| "storybook": "8.6.15" | ||
| } | ||
| } | ||
| } | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Because
useAnimatedReactiononly re-runs whencurrentPosition.valuechanges, the earlyreturnwhentotalDuration.value === 0can leavetranslationXstuck at the previous audio’s position. This happens when switching to a new audio bubble:currentPositionis reset to 0 whiletotalDurationis still 0, so the reaction exits and never updates again when the duration later becomes >0. The knob/filled track then render at the old position until playback advances. Consider resettingtranslationXto 0 (or reacting tototalDurationchanges) instead of returning.Useful? React with 👍 / 👎.