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 |
|
🚀 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.
This change caused another crash.
ref: #37710 (comment)
There was a problem hiding this comment.
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.
yes, but I am commenting here since it's directly related.
I just suggested in the linked issue not affect payment.








Details
Fixed Issues
$ #36833
PROPOSAL: #36833 (comment)
Tests
Downloadaction.Offline tests
Same as in the Tests section.
QA Steps
Same as in the Tests section.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.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 so 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
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