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! |
|
✋ 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 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.12-7 🚀
|


Explanation of Change
The
onReadyForDisplaycallback is triggered when fullscreen mode is enabled, causingplayVideoto be called and the video to start playing unexpectedly. This PR move playVideo function toonLoadinstead ofonReadyForDisplayFixed Issues
$ #55965
PROPOSAL: #55965 (comment)
Tests
Offline tests
Same test as above
QA Steps
Same test as above
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))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
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