-
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
[Due for payment 2025-02-28] [$250] Reports - Video sound is playing simultaneously on Reports page and full screen view #54166
Comments
Triggered auto assignment to @VictoriaExpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~021868517100126911249 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @suneox ( |
Edited by proposal-police: This proposal was edited at 2024-12-18 09:43:24 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.In Step 6, when the video is played in full screen, the video plays simultaneously in Report page and also in full screen view. What is the root cause of that problem?
App/src/components/Attachments/AttachmentView/index.tsx Lines 293 to 295 in 653af04
Then App/src/components/VideoPlayerPreview/index.tsx Lines 69 to 72 in b6ebedb
And here we don't video player data when we change from inbox to search page and vice versa App/src/components/VideoPlayerContexts/PlaybackContext.tsx Lines 103 to 106 in b6ebedb
What changes do you think we should make in order to solve the problem?
App/src/components/VideoPlayerContexts/PlaybackContext.tsx Lines 103 to 106 in b6ebedb
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional)NA Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Please re-state the problem that we are trying to solve in this issue.Reports - Video sound is playing simultaneously on Reports page and full screen view What is the root cause of that problem?
The video playback component lacked integration with the navigation lifecycle of the application. React Navigation provides hooks such as useFocusEffect or useIsFocused to determine whether the current screen is active (focused) or inactive (unfocused). Without leveraging these hooks, the app has no way to detect when the user navigates away from a screen containing an active video. As a result: The video component continued playing in the background, even when the screen was no longer visible. Without proper management of the playback state, the video may continue playing in the background or not resume correctly when the user returns to the screen. What changes do you think we should make in order to solve the problem?Use useFocusEffect: Implement the useFocusEffect hook to manage video playback based on the screen's focus state. This ensures that the video plays when the screen is focused and pauses when it loses focus. change in file /Users/techdoodles/Downloads/App-main/src/components/VideoPlayer/BaseVideoPlayer.tsx
video:- https://www.loom.com/share/265b1fbca8404ad1a0fcb31a1abb32c3?sid=50985390-7393-442f-93e4-2fff0e737c03 |
Thanks for all the proposals. Before diving into the detailed solutions, we should clarify the RCA and ensure the solution addresses the issue comprehensively.
@mkzie2 Could you please clarify which part of the code is responsible for initializing another
@kaushiktd We should provide a more detailed RCA with references to the relevant code |
@suneox When we click on the filter option, the URL changes, causing a focus change, and the video stops playing. Do we need the video to continue playing when the filter is opened? |
@suneox, @VictoriaExpensify Eep! 4 days overdue now. Issues have feelings too... |
Thanks for all the updates. I'll review the new changes today. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Triggered auto assignment to @aldo-expensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @suneox 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @mkzie2 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
This issue has not been updated in over 15 days. @suneox, @VictoriaExpensify, @aldo-expensify, @mkzie2 eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
We are still working on an edge case in the PR. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.3-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2025-02-28. 🎊 For reference, here are some details about the assignees on this issue:
|
@suneox @VictoriaExpensify @suneox The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:
Test:
Do we agree 👍 or 👎 |
Payment summary: @suneox I have sent you an offer in Upwork. Please accept it and I'll process your payment. Thanks! |
Raised a request to add this to test rail - https://github.com/Expensify/Expensify/issues/477097 |
@VictoriaExpensify Thank you! I have accepted the offer. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.76-6
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): applausetester+kh1311020@applause.expensifail.com
Issue reported by: Applause Internal Team
Device used: Mac 15.0 / Chrome
App Component: Search
Action Performed:
Expected Result:
In Step 6, when the video is played in full screen, the video will not play simultaneously in Report page and also in full screen view.
In Step 8 and 9, the video will stop playing after switching tab.
Actual Result:
In Step 6, when the video is played in full screen, the video plays simultaneously in Report page and also in full screen view.
In Step 8 and 9, the video is still playing after switching tab.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6694737_1734253452793.Screen_Recording_2024-12-15_at_16.56.10.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @VictoriaExpensifyThe text was updated successfully, but these errors were encountered: