-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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: show video control when video ended #51218
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 🙏 |
@@ -213,7 +225,7 @@ function BaseVideoPlayer({ | |||
const currentDuration = status.durationMillis || videoDuration * 1000; | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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