WordPress-Android icon indicating copy to clipboard operation
WordPress-Android copied to clipboard

Ba/issue 3

Open BeatrizAlmeida03 opened this issue 8 months ago • 2 comments

Description

The issue, described in #21171, involved a bug where inserting a YouTube video via URL in the video block resulted in the raw link being displayed instead of an embedded, playable video in the preview. This occurred because the app relied on plain HTML and did not process the URL properly for embedding.

To fix this, we modified the WordPress/src/main/java/org/wordpress/android/ui/WPWebViewActivity.java file to wrap the provided video URL in an <iframe> element, ensuring it is recognized and rendered as an actual embedded video during preview.

Testing instructions

  • Click the 'Create a post or page' icon
  • Click the 'Blog post' button
  • Click the 'Video' icon
  • Click the 'Insert from URL'
  • Enter a valid URL, e.g., "https://youtu.be/g-6g2uEjF1s?si=fkwLragUSjLV7x1u"
  • Tap the 'Done' button on the keyboard
  • Click the outside of the 'Insert from URL' pop-up
  • Click the 'Three-dot' menu
  • Click the 'Preview' button

closes #21171

BeatrizAlmeida03 avatar Apr 30 '25 15:04 BeatrizAlmeida03

Hi @BeatrizAlmeida03, as said in your other PR, thank you for working on this. Could you add a more descriptive title and add some testing proofs, like a screenshot or a video? Thanks!

adalpari avatar Jun 04 '25 13:06 adalpari

@BeatrizAlmeida03 Since the PR has been open for a while without any updates, we'll close it for now. Please feel free to re-open it when you make the necessary changes. Thank you for your contribution!

oguzkocer avatar Jul 31 '25 01:07 oguzkocer