Fix: Handle unsupported videos in iOS#57353
Conversation
|
|
|
|
|
@hoangzinh 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] |
|
cc @Expensify/design for vis |
|
|
@shawnborton I used the svg that was shared here in the issue |
|
Yes, but I think you missed the mockup here. Can you please re-review? Thanks! |
|
@shawnborton Sorry if I'm mistaken but I assumed the conclusion was to only show the icon based on this two comments. comment one and comment two. Sorry, if we want the text to be shown, I will try to update it. |
|
🫣 It was after that mock up that there was some trouble implementing the text in that view, so I suggested just using the icon, and you and Jon agreed it would be ok. 😬 Do we need to revisit that? |
|
I thought that was in reference to the icon being enough just for the attachment preview area? I could be mistaken though. I thought that when you actually view the attachment in the modal, we would still show it... |
Yes, we can use |
|
I say go ahead and push, this is something that we have historically agreed upon so I like our chances 🤣 and if not, I will deal with the ensuing wrath. |
|
|
sure @HezekielT. Let me ask other people. |
|
Hi @puneetlath, can you help to trigger an AdHoc build for Hybrid here? Thank you. |
Reviewer Checklist
Screenshots/VideosAndroid: Native StandaloneScreen.Recording.2025-03-07.at.21.12.31.android.movAndroid: Native HybridScreen.Recording.2025-03-07.at.21.05.17.android.hybrid.movAndroid: mWeb ChromeScreen.Recording.2025-03-07.at.21.07.36.android.chrome.moviOS: Native StandaloneScreen.Recording.2025-03-07.at.21.16.15.ios.moviOS: Native HybridScreen.Recording.2025-03-07.at.20.46.32.ios.hybrid.moviOS: mWeb SafariScreen.Recording.2025-03-07.at.20.59.05.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2025-03-07.at.20.45.09.web.movMacOS: DesktopScreen.Recording.2025-03-07.at.20.48.19.desktop.mov |
|
I can fire one up quickly 🚀 |
|
🚧 @shawnborton has triggered a test app build. You can view the workflow run here. |
|
🚧 @puneetlath has triggered a test app build. You can view the workflow run here. |
|
Thank you @shawnborton and @puneetlath |
|
As predicted, I agree with Shawn's comment earlier! 😁 |
This comment has been minimized.
This comment has been minimized.
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
hoangzinh
left a comment
There was a problem hiding this comment.
LGTM. Tested on both Hybrid and Standalone apps
|
✋ 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/puneetlath in version: 9.1.11-1 🚀
|
|
@puneetlath @hoangzinh I forgot to mention it, but I wanted to state that the upstream PR to expo-av has been approved 🎉 🎉 |
|
Awesome! |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.12-7 🚀
|

Explanation of Change
This PR adds a video error indicator that will be shown when a user tries to play videos with av1 codec on iOS which are not currently fully supported by apple.
Fixed Issues
$ #52673
PROPOSAL: #52673 (comment)
Tests
On Supported devices such as android native, chrome and Macbook pro M3 macOS safari
For iOS native and iOS: mweb Safari
An error occurred while trying to play this video.for videos that are inside attachment modal indicating that the video is not playable.Slashed Video Example
Offline tests
An internet connection is required to load the video.
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as
TestsSection.PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.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 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_av1.mp4
Android: mWeb Chrome
mweb_chrome_av1_final.mov
iOS: Native
av1_ios_native.mp4
iOS: mWeb Safari
av1_ios_mweb_safari.mov
MacOS: Chrome / Safari
web_safari_av1_codec.mov
MacOS: Desktop
desktop_av1.mp4