-
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 downloading video crash #37122
FIx downloading video crash #37122
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] |
@francoisl We have another error which reproducible only for native platforms. The problem becomes from here. Here we should use original |
@francoisl, I don't have access to this doc, but according to the discussion here, besides adding a https://stackoverflowteams.com/c/expensify/questions/15778/15779 |
This comment has been minimized.
This comment has been minimized.
Yes I did, it just takes a while to build :) Anyway, it's built now except for |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
At step 4 of the test, what gets downloaded for me is just a HTML page, is this due to the same issue you were referring to in this comment? Screen.Recording.2024-02-23.at.3.03.11.PM.mov |
I'm seeing "Attachment cannot be downloaded" error on iOS (simulator) Screen.Recording.2024-02-24.at.00.32.27.movWeirdly, on a physical device even with current prod (without the fix from this PR), video preview is not displayed. Was this discussed and is this by design? RPReplay_Final1708731177.MP4 |
Also, could you please upload the missing videos for iOS/Android (native)? |
Yes, at the moment on production, videos are still treated as regular file attachments. We just deployed the video player feature to staging. |
Ah, I see, thank you @francoisl! The "Attachment cannot be downloaded" error is still present on a physical device RPReplay_Final1708737731.MP4 |
@eVoloshchak @francoisl didn't you notice my comment ? |
Ah, I see now! |
@eVoloshchak It seems this PR will fix the problem with urls. We need hold current PR on that one |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
@eVoloshchak can you complete the checklist please? |
Reviewer Checklist
Screenshots/Videos |
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.
LGTM!
🚀 Deployed to staging by https://github.com/francoisl in version: 1.4.47-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.4.47-10 🚀
|
useEffect(() => { | ||
currentVideoPlayerRef.current = videoPlayerRef.current; | ||
}, [url, currentVideoPlayerRef]); |
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.
This change caused another crash.
ref: #37710 (comment)
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.
But here #37710 (comment) you yourself wrote that the crash came from combination of multiple video player PRs.
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.
yes, but I am commenting here since it's directly related.
I just suggested in the linked issue not affect payment.
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.
I got it. Thank you
Details
Fixed Issues
$ #36833
PROPOSAL: #36833 (comment)
Tests
Download
action.Offline tests
Same as in the Tests section.
QA Steps
Same as in the Tests section.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.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 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
Screen.Recording.2024-02-28.at.13.28.39.mov
Android: mWeb Chrome
Screenrecorder-2024-02-28-15-33-39-773.mp4
iOS: Native
Screen.Recording.2024-02-28.at.13.49.46.mov
iOS: mWeb Safari
Screen.Recording.2024-02-28.at.14.13.49.mov
MacOS: Chrome / Safari
Screen.Recording.2024-02-28.at.14.09.18.mov
MacOS: Desktop
Screen.Recording.2024-02-28.at.14.06.08.mov