Fix video not loading after regaining internet connection#37674
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] |
|
This bug also happens on other platforms (native/mWeb) and is successfully fixed by this PR. Could you also include Screenshots/Videos for all of the platforms? |
…-internet-connection
|
@eVoloshchak sorry, I was busy with live markdown preview implementation. I will add videos today. However, I'm not sure how can I show it o iOS since, app on simulator don't return to online state after regaining internet connection |
It does in my tests Screen.Recording.2024-03-12.at.20.58.28.mov |
…-internet-connection
|
Idk I can't reproduce that, after turning off internet it stays in offline mode. However I've added android videos to the PR. Can we proceed without iOS ones? Screen.Recording.2024-03-14.at.12.27.45.mov |
@Skalakid, sure, no problem, I'll test iOS and upload the videos |
|
@eVoloshchak I've added this change because in some cases video wasn't playing after regaining Internet connection. However after merging with main I can't reproduce that any more without this change. So I think we can remove it. Thanks |
|
@eVoloshchak bump |
@Skalakid, I think I managed to reproduce this case on Safari mobile, looks like this change was needed indeed Screen.Recording.2024-03-19.at.12.18.01.mov |
|
@eVoloshchak Okay, I've added these changes again |
eVoloshchak
left a comment
There was a problem hiding this comment.
@Skalakid, that didn't do the trick, this is still reproducible on mWeb Safari/Chrome
Screen.Recording.2024-03-20.at.16.58.03.mov
…-internet-connection
|
@eVoloshchak can you check now, please? After merging the latest main I can't reproduce this issue ios.safari.mov |
Reviewer Checklist
Screenshots/VideosAndroid: Native24-03-21-16-56-21.mp4Android: mWeb ChromeScreen.Recording.2024-03-21.at.16.50.47.moviOS: NativeScreen.Recording.2024-03-21.at.16.59.34.moviOS: mWeb SafariScreen.Recording.2024-03-21.at.16.49.12.movMacOS: Chrome / SafariScreen.Recording.2024-03-21.at.17.00.42.movMacOS: DesktopScreen.Recording.2024-03-21.at.17.02.18.mov |
|
@mountiny bump |
…-internet-connection
mountiny
left a comment
There was a problem hiding this comment.
Thanks everyone! Sorry I was ooo
| useNativeControls={false} | ||
| resizeMode={resizeMode} | ||
| isLooping={isLooping} | ||
| onReadyForDisplay={onVideoLoaded} |
There was a problem hiding this comment.
✋ Coming from #55965
According to the Expo documentation on onReadyForDisplay:
A function to be called when the video is ready for display. Note that this function gets called whenever the video's natural size changes.
This means the video was starting playing every time you toggle full screen. This was resolved by using onLoad instead
Details
This PR fixes a problem with video loading infinitely after regaining the internet connection.
Fixed Issues
$ #36903
PROPOSAL:
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
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
android.mov
Android: mWeb Chrome
chrome.mov
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov