fix: Issues related to video progress and controls especially on Android#84865
fix: Issues related to video progress and controls especially on Android#84865inimaga merged 6 commits intoExpensify:mainfrom
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@QichenZhu Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@QichenZhu The failing jest test seems unrelated to the PR changes. |
|
I found two more bugs in video player (not related to what we are solving). I'll post about those bugs tomorrow. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d40f57ecc1
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if (shouldResumeAfterSeek) { | ||
| allowSharedAutoPlayRef.current = true; | ||
| playVideo(); |
There was a problem hiding this comment.
Reset autoplay gate when seek ends from paused state
After a paused seek, onSeekStart sets allowSharedAutoPlayRef.current = false, but this block only restores it inside the shouldResumeAfterSeek branch. That leaves the autoplay gate permanently off for that player, so when the same video becomes non-current and the user taps play once, togglePlayCurrentVideo only updates the URL and shareVideoPlayerElements refuses to auto-play because !allowSharedAutoPlayRef.current is still true; users then need a second tap to actually start playback.
Useful? React with 👍 / 👎.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-03-16.at.9.17.35.PM.movAndroid: mWeb ChromeScreen.Recording.2026-03-16.at.9.26.25.PM.moviOS: HybridAppScreen.Recording.2026-03-16.at.9.29.25.PM.moviOS: mWeb SafariScreen.Recording.2026-03-16.at.9.37.43.PM.movMacOS: Chrome / SafariScreen.Recording.2026-03-16.at.9.40.17.PM.mov |
|
NAB: Video seek drag gesture conflicts with previous/next slide navigation on mobile web. Also seen on staging and may block testing of this PR. nab-android-web.mov |
QichenZhu
left a comment
There was a problem hiding this comment.
LGTM.
The failed unit test should be fixed on main. Tested locally and it passed.
|
Let me merge main |
|
🚧 @inimaga has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/inimaga in version: 9.3.39-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.3.39-3 🚀
|
Explanation of Change
In this PR, we are solving the following issues:
Fixed Issues
$ #82026
PROPOSAL: #82026 (comment)
Tests
Offline tests
Same as Test
QA Steps
Same as Test
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android-native.mp4
Android: mWeb Chrome
Android-mWeb.mp4
iOS: Native
iOS-native.mp4
iOS: mWeb Safari
iOS-safari.mp4
MacOS: Chrome / Safari
macOS.mp4