Fix : Attachment - Video sound doesn't stop while navigating through the existing attachments#71541
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #71541 +/- ##
==========================================
- Coverage 35.18% 35.14% -0.05%
==========================================
Files 3297 3307 +10
Lines 108155 108254 +99
Branches 34549 34593 +44
==========================================
- Hits 38057 38042 -15
- Misses 69912 70022 +110
- Partials 186 190 +4
📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
|
@linhvovan29546 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] |
|
Note: other video are being compressed to be less than 10mb for uploading today |
|
cc @ikevin127 ^ |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-hybrid.mp4Android: mWeb Chromeandroid-mweb.mp4iOS: HybridAppios-hybrid.moviOS: mWeb Safariios-mweb.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
|
@M00rish Looks like prettier check is failing, do you mind running a |
|
i did run it before committing changes and last one before main merge and still did not clear this, when i run prettier now (even with |
@M00rish There must be something wrong with your prettier, maybe you have local prettier config that's conflicting with the repo prettier config resulting in no changes when you run it (it's common). I ran prettier myself on the PR and there are formatting issues to the files you changed in this PR, here's a diff you can apply directly to fix the prettier check: diff --git a/src/components/VideoPlayerContexts/PlaybackContext/index.tsx b/src/components/VideoPlayerContexts/PlaybackContext/index.tsx
index 7d059e46065..78861142b6c 100644
--- a/src/components/VideoPlayerContexts/PlaybackContext/index.tsx
+++ b/src/components/VideoPlayerContexts/PlaybackContext/index.tsx
@@ -31,7 +31,7 @@ function PlaybackContextProvider({children}: ChildrenProps) {
return;
}
- if(!url){
+ if (!url) {
if (currentlyPlayingURL) {
video.stop();
}
diff --git a/src/components/VideoPlayerContexts/PlaybackContext/usePlaybackContextVideoRefs.ts b/src/components/VideoPlayerContexts/PlaybackContext/usePlaybackContextVideoRefs.ts
index d79d588d6c0..e66a4911bc5 100644
--- a/src/components/VideoPlayerContexts/PlaybackContext/usePlaybackContextVideoRefs.ts
+++ b/src/components/VideoPlayerContexts/PlaybackContext/usePlaybackContextVideoRefs.ts
@@ -82,7 +82,7 @@ function usePlaybackContextVideoRefs(resetCallback: () => void) {
resumeTryNumberRef: videoResumeTryNumberRef,
updateRef: updateCurrentVideoPlayerRef,
}),
- [checkIfVideoIsPlaying, pauseVideo, playVideo, resetVideoPlayerData,stopVideo],
+ [checkIfVideoIsPlaying, pauseVideo, playVideo, resetVideoPlayerData, stopVideo],
);
}🟢 Once the 2 diff formatting changes are applied, I'll approve 👍 |
|
Congrats, that's your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It's an opportunity to earn more in the Expensify Open Source community. Keep up the great work - 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/jasperhuangg in version: 9.2.29-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.29-5 🚀
|
Explanation of Change
Fixed Issues
$ #71149
PROPOSAL: Proposal
Tests
Offline tests
N/A
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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
Android_Native.mp4
Android: mWeb Chrome
webAndroid.mp4
iOS: Native
iOS_Native.mp4
iOS: mWeb Safari
iOS_Web.mp4
MacOS: Chrome / Safari
webSafari.1.mov
MacOS: Desktop
Desktop.mov