wordpress-mobile / wordpress-mobile/WordPress-Android

Added audio or video URLs are not parsed correctly, resulting in unplayable media blocks

Open
#21,171 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Bug Media Posting/Editing
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Expected behavior

The added audio or video should be parsed correctly, and the media block should be playable.

Actual behavior

The added audio or video is not parsed correctly, resulting in an unplayable block.

Steps to reproduce the behavior
  1. Click the 'Create a post or page' icon
  2. Click the 'Blog post' button
  3. Click the 'Audio'/'Video' icon
  4. Click the 'Insert from URL'
  5. Enter a valid URL, e.g., "https://youtu.be/g-6g2uEjF1s?si=fkwLragUSjLV7x1u"
  6. Tap the 'Done' button on the keyboard
  7. Click the outside of the 'Insert from URL' pop-up
  8. Click the 'Three-dot' menu
  9. Click the 'Preview' button
Notes

There is only one option (Insert from URL) for adding an audio block but four options for adding a video block. Is this discrepancy intentional, or should there be additional options for adding audio blocks?

Tested on [device], Android [version], JPAndroid / WPAndroid [version]

Galaxy A14 5G, Android 13, JPAndroid / WPAndroid 25.2.1 (1444)

https://github.com/user-attachments/assets/3d282101-f4fc-4efe-96d5-02c25e316488

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on the reported Galaxy A14 5G with Android 13 and WPAndroid 25.2.1, using the supplied YouTube URL and the Audio and Video insert-from-URL flows. Trace where the URL is parsed before preview; done means the resulting audio or video block is playable, with the audio insertion options discrepancy resolved or documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.