-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$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 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] 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): [email protected]
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: @suneoxThe text was updated successfully, but these errors were encountered: