fix: show video control when video ended#51218
fix: show video control when video ended#51218neil-marcellini merged 13 commits intoExpensify:mainfrom
Conversation
|
@ishpaul777 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] |
|
On my radar will review tomorrow! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-17.at.8.55.07.PM.movAndroid: mWeb ChromeScreen.Recording.2024-11-17.at.8.58.28.PM.moviOS: NativeScreen.Recording.2024-11-11.at.11.28.44.PM.moviOS: mWeb SafariScreen.Recording.2024-11-11.at.11.19.13.PM.movMacOS: Chrome / SafariScreen.Recording.2024-11-11.at.11.11.37.PM.movMacOS: DesktopScreen.Recording.2024-11-17.at.9.04.30.PM-1.mov |
|
bug: when hover out, the video control not hiding when video is played second time Screen.Recording.2024-11-01.at.11.40.06.PM.mov |
|
@ishpaul777 i fixed, please check again |
still same behaviour, seems not fixed: Screen.Recording.2024-11-06.at.1.55.19.AM.mov |
|
I'll give an update soon |
Screen.Recording.2024-11-11.at.16.14.49.mov@ishpaul777 i fixed, please check again |
|
@nkdengineer Thanks, that issue seems fixed but i have notice that on Android app, the video keeps looping after ended, it restart this does not seem to be the case on other platforms and on main Screen.Recording.2024-11-11.at.11.30.42.PM.mov |
|
I'm investigating |
|
@ishpaul777 i fixed, please check again 🙏 |
| const currentPositon = status.positionMillis || 0; | ||
|
|
||
| if (shouldReplayVideo(status, isVideoPlaying, currentDuration, currentPositon)) { | ||
| if (shouldReplayVideo(status, isVideoPlaying, currentDuration, currentPositon) && !isEnded) { |
There was a problem hiding this comment.
NAB: I think it's ok, but why do we need to check !isEnded here? If it's needed, can we make it part of shouldReplayVideo? I'm going to trust all the testing you guys did so you can explain and fix after I merge it.
There was a problem hiding this comment.
this is added because on android spefically, when the video is just ended it starts replaying as we auto the control ui bar, i think yes we can make it part of shouldReplayVideo @nkdengineer
|
✋ 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/neil-marcellini in version: 9.0.65-0 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.0.65-5 🚀
|
Details
Fixed Issues
$ #50179
PROPOSAL: #50179 (comment)
Tests
Offline tests
same as above
QA Steps
same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov