-
Notifications
You must be signed in to change notification settings - Fork 800
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
[RNMobile] VideoPress Android WebView #30521
Conversation
Render a Pressable component to send the embed content to a native WebView.
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. |
Are you an Automattician? You can now test your Pull Request on WordPress.com. On your sandbox, run
to get started. More details: p9dueE-5Nn-p2 |
…/rnmobile/android-webview
Keeping as a draft till #30411 is merged |
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.
@jhnstn Tested via wordpress-mobile/WordPress-Android#18383 (review). I added a couple of comments that shouldn't block the PR, let me know if you could take a look, thanks!
...s/packages/videopress/src/client/block-editor/blocks/video/components/player/index.native.js
Outdated
Show resolved
Hide resolved
projects/packages/videopress/changelog/rnmobile-update-loading-screen-android
Outdated
Show resolved
Hide resolved
...s/packages/videopress/src/client/block-editor/blocks/video/components/player/index.native.js
Outdated
Show resolved
Hide resolved
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.
...s/packages/videopress/src/client/block-editor/blocks/video/components/player/index.native.js
Outdated
Show resolved
Hide resolved
...packages/videopress/src/client/block-editor/blocks/video/components/player/style.native.scss
Outdated
Show resolved
Hide resolved
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.
@jhnstn looks like Linting / ESLint
jobs are failing.
...s/packages/videopress/src/client/block-editor/blocks/video/components/player/index.native.js
Outdated
Show resolved
Hide resolved
<Pressable | ||
style={ style[ 'videopress-player__open-embed-button' ] } | ||
onPress={ () => { | ||
requestEmbedFullscreenPreview( html, title ); | ||
} } | ||
/> |
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.
Following some of the issues we spotted when testing (wordpress-mobile/gutenberg-mobile#5758), I'm wondering if we should limit opening the WebView until the video reaches a ready state. Maybe we could wait until the player is ready and loaded to enable this button, WDYT?
I was also thinking if we could get the HTML from the WebView we display within the editor to pass it to the new WebView, but seems this data is not exposed by the react-native-webview
library.
In any case, since the companion PRs to this one have been merged, I'll go ahead and merge it as-is. Hence, potential improvements to this approach would need a separate PR.
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.
Approved via wordpress-mobile/WordPress-Android#18383 (review).
Fixes wordpress-mobile/gutenberg-mobile#5509
Depends on:
Proposed changes:
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
See Test Instructions in the Gutenberg PR