Repository navigation
Description
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.3.16-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #81732
Email or phone of affected tester (no customers): applausetester+ap3@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Pull Request QA execution
Device used: Samsung a31
App Component: Other
Action Performed:
1.Go to Inbox tab
2.Open any DM chat
3.Add a video attachment
4.Send the message
5.Tap Play on the video
6.Try to drag the progress bar forward or backward
Expected Result:
User can drag the progress bar to seek forward or backward in the video.
Video playback position updates according to the selected point in the progress bar.
Actual Result:
When trying to drag the progress bar, it disappears.
User is unable to seek forward or backward in the video.
Video can only be played from the current position without manual seeking.
This behavior occurs only on Android; Web and iOS allow seeking correctly.
Workaround:
Unknown
Platforms:
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
Screenshots/Videos
1.mp4
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022037291803785028442
- Upwork Job ID: 2037291803785028442
- Last Price Increase: 2026-03-26
Metadata
Metadata
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Feb 10, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @QichenZhu (
External)melvin-bot commentedon Feb 10, 2026
Triggered auto assignment to @sonialiap (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.[-]Android - DM - Video progress bar disappears when trying to seek[/-][+][$250] Android - DM - Video progress bar disappears when trying to seek[/+]melvin-bot commentedon Feb 10, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022021286851020563878
btkcodedev commentedon Feb 10, 2026
🚨 Edited by proposal-police: This proposal was edited at 2026-02-11 08:13:31 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
On Android, seeking in the send-attachment preview (and other video views) causes the progress bar to disappear during drag or buffering. Additionally, the loading indicator can cover the controls and linger after playback resumes. The goal is to keep the progress bar visible while seeking and buffering, and to dismiss the loading indicator immediately when playback resumes.
What is the root cause of that problem?
shouldShowLoadingIndicatoris true, which removes the progress bar during buffering. This happens in the controls render gate in BaseVideoPlayer.tsx.hideControland its debounce in BaseVideoPlayer.tsx.isPlayingon the ref, which can lag during buffer transitions, leaving the loader visible after playback resumes. This is in BaseVideoPlayer.tsx.What changes do you think we should make in order to solve the problem?
SHOWwhenshouldShowLoadingIndicatoris true in BaseVideoPlayer.tsx.playingChangeevent and use it for loading indicator logic in BaseVideoPlayer.tsx and BaseVideoPlayer.tsx.Code changes summary (paths and key edits)
~/App/src/components/VideoPlayer/BaseVideoPlayer.tsx
isProgressBarBeingDraggedandisPlayingStatestate.shouldShowLoadingIndicatorusesisPlayingState.hideControlskips while dragging.handleProgressBarDragStartforcesSHOWand cancels hide.~/App/src/components/VideoPlayer/VideoPlayerControls/ProgressBar/index.tsx
onDragStart/onDragEndprops.onDragStarton touch start and in pan begin.onDragEndon pan finalize.~/App/src/components/VideoPlayer/VideoPlayerControls/index.tsx
onProgressBarDragStart/onProgressBarDragEndprops.ProgressBar.What alternative solutions did you explore? (Optional)
None
Test branch
btkcodedev/82026AndroidVideoSeek
Test results
Tested and verified the solution.
Both attachment viewer and send attachment viewer reuse BaseVideoPlayer, thus checked both.
Sorry about the lag in loading time - Phone is a little older.
screen-20260211-133552.mp4
abbasifaizan70 commentedon Feb 10, 2026
🚨 Edited by proposal-police: This proposal was edited at 2026-02-16 17:03:37 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
When trying to drag the progress bar, it disappears. User is unable to seek forward or backward in the video. Video can only be played from the current position without manual seeking. This behavior occurs only on Android; Web and iOS allow seeking correctly.
What is the root cause of that problem?
Pan gesture activates after movement: The video progress bar uses a
Pangesture fromreact-native-gesture-handler. By default,Panrequires a minimum finger movement before it "activates." On Android, until the gesture activates, the touch is not fully claimed by the gesture handler. The overlay that contains the progress bar is a sibling of aPressableWithoutFeedbackthat wraps the video area and toggles control visibility on press. When the user touches the progress bar and starts to drag, the touch (or the release) can be delivered to thatPressable, which callstoggleControl()and hides the controls—including the progress bar.Touch events bubble to parent Pressable: Even with
.minDistance(0), on Android Native, when the Pan gesture ends, the touch event can still bubble up to the parentPressableWithoutFeedback, triggering itsonPresshandler which callstoggleControl()and hides the controls.Small touch target: The progress bar track has a height of 4px. On Android, the user's finger is more likely to land slightly outside the bar or the gesture's hit area, so the touch is delivered to the underlying
Pressableinstead of the progress bar'sGestureDetector, again causing the controls to hide.Limited seek functionality: The current implementation uses
event.x(relative position from gesture start), which only allows dragging from the current playback position. Users cannot tap/click anywhere on the bar to jump to that position (like YouTube), making seeking less intuitive.Continuous seeking during drag: The video seeks on every drag movement, causing loading/buffering issues and poor performance during scrubbing.
What changes do you think we should make in order to solve the problem?
Proposed solution:
.minDistance(0)on thePangesture so it activates on touch down, capturing the touch immediately..shouldCancelWhenOutside(false)to prevent the gesture from being cancelled when dragging outside view bounds.Gesture.Exclusive()to completely block touch events from bubbling to the parentPressableWithoutFeedback, preventing it from callingtoggleControl().minHeight: 44) so the draggable area is easier to hit and the gesture reliably receives the touch instead of thePressableunderneath.absoluteXon initial touch to allow tapping/clicking anywhere on the bar, then track drag movements withchangeXfor smooth scrubbing.onFinalize), preventing loading issues and improving performance.All changes are in one file:
App/src/components/VideoPlayer/VideoPlayerControls/ProgressBar/index.tsx.Summary
Root causes:
Pangesture did not activate on touch down, and the touch target was small, causing the overlay's siblingPressableto receive the touch and hide the controls.PressableWithoutFeedbackafter the gesture ended, triggeringtoggleControl()and hiding the controls.event.xprevented tapping anywhere on the bar to jump to that position.Fixes implemented in
ProgressBar/index.tsx:PlatformimportsliderLeftOffset,currentProgressPosition)progressBarInteractiontoupdateProgressBarwith YouTube-style seeking logic usingabsoluteXandchangeX.minDistance(0)on thePangesture so it activates on touch down.shouldCancelWhenOutside(false)to prevent gesture cancellation when dragging outside boundsGesture.Exclusive()to block touch events from bubbling to parent PressableonBeginto calculate slider offset and update visual onlyonChangeto track drag movements and update visual onlyonFinalizeto perform the actual seek operation once on releaseminHeight: 44on the progress bar container for easier touch targetingTest Branch
Link
QichenZhu commentedon Feb 11, 2026
@btkcodedev, can you share a video showing it works? It doesn't work for me.
QichenZhu commentedon Feb 11, 2026
@abbasifaizan70, ^same.
83 remaining items
melvin-bot commentedon Mar 26, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon Mar 26, 2026
Current assignee @QichenZhu is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Mar 26, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022037291803785028442
mallenexpensify commentedon Mar 26, 2026
Payment Summary
Contributor: @Uzaifm127 paid $250 via Upwork
Contributor+: @QichenZhu due $250 via NewDot
^ Test case created
@Uzaifm127 can you please accept the job below? Please reply here and tag me once you have.
https://www.upwork.com/jobs/~022037291803785028442
[-][$250] Android - DM - Video progress bar disappears when trying to seek[/-][+][Due for Payment now] [$250] Android - DM - Video progress bar disappears when trying to seek[/+]Uzaifm127 commentedon Mar 27, 2026
@mallenexpensify Accepted the offer on upwork and requested the payment there.
twisterdotcom commentedon Mar 27, 2026
@QichenZhu has submitted payment for this report on ND here.
SO: https://stackoverflowteams.com/c/expensify/questions/7582
Zapier Logs
Run ID: 00040eee-449a-a0dc-a892-45a0f58f4854mallenexpensify commentedon Mar 27, 2026
@Uzaifm127 paid, summary updated above. Thx.