-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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: paused video auto start when enable fullscreen mode #56496
fix: paused video auto start when enable fullscreen mode #56496
Conversation
@eVoloshchak 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] |
@eVoloshchak I've tested and it works well on native. However, I see two console errors on both web and desktop. These errors already exist on staging, prod and will affect this PR, preventing the video from autoplaying. Should we fix them within this PR? Both errors come from the Screen.Recording.2025-02-07.at.2.55.04.PM.mp4![]() |
@eVoloshchak Could you review this when you have a chance? Thank you! |
…rt-playing-when-enable-fullscreen
@eVoloshchak bump @linhvovan29546 can you please merge main? |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-03-10.at.08.14.51.movAndroid: mWeb ChromeScreen.Recording.2025-03-10.at.08.18.39.moviOS: NativeScreen.Recording.2025-03-10.at.08.24.11.moviOS: mWeb SafariScreen.Recording.2025-03-10.at.08.26.00.movMacOS: Chrome / SafariScreen.Recording.2025-03-10.at.08.21.22.movMacOS: DesktopScreen.Recording.2025-03-10.at.08.19.40.mov |
@linhvovan29546, are you able to reproduce this bug on staging? I'm unable to reproduce it on both staging and web on all platforms. Could you double-check if this has been resolved for you please? |
Let's remove the first step as this is tested on all platforms
Do you know if these steps are necessary to reproduce the bug? I'm able to reproduce it using any video in any chat, could you check, please? We could simplify the testing steps if the bug is present for any video |
…rt-playing-when-enable-fullscreen
Updated |
@eVoloshchak I can reproduce that with a different attachment, the issue does not appear with the video from Concierge |
…rt-playing-when-enable-fullscreen
…rt-playing-when-enable-fullscreen
@linhvovan29546, since we're waiting on #57374 to be merged, could you convert this to draft and add |
Updated |
@eVoloshchak The PR #57374 has been merged. What's the next step? Should we wait for it to be deployed to production? |
@linhvovan29546 @eVoloshchak nah lets merge main and start building on top of it |
…-when-enable-fullscreen
@eVoloshchak I merged main and tested locally, it works well. |
@eVoloshchak please continue with the review when you can, thanks! |
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.
Tests well!
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.
Thanks!
✋ 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/mountiny in version: 9.1.11-1 🚀
|
Explanation of Change
The
onReadyForDisplay
callback is triggered when fullscreen mode is enabled, causingplayVideo
to be called and the video to start playing unexpectedly. This PR move playVideo function toonLoad
instead ofonReadyForDisplay
Fixed Issues
$ #55965
PROPOSAL: #55965 (comment)
Tests
Offline tests
Same test as above
QA Steps
Same test as above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
media_20250207_083209_94865088662254370.mp4
Android: mWeb Chrome
media_20250207_083209_8618225195132120160.mp4
iOS: Native
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-02-06.at.16.06.07.mp4
iOS: mWeb Safari
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-02-06.at.16.10.43.mp4
MacOS: Chrome / Safari
Screen.Recording.2025-02-06.at.4.30.38.PM.mov
MacOS: Desktop
Screen.Recording.2025-02-06.at.4.19.35.PM.mov