WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.28k stars 4.09k forks source link

[RNMobile] Media & Text: Video sometimes doesn't play within iOS editor #59374

Open SiobhyB opened 6 months ago

SiobhyB commented 6 months ago

Description

After adding a video the Media & Text block within the iOS app, a black/empty player will sometimes display with a centred play button. When tapped, an empty player is displayed. The video will display when previewing the site, but not when attempting to work within the editor. It's been possible to reproduce this with private sites.

In Android, a thumbnail of the video will be correctly displayed within the editor.

Step-by-step reproduction instructions

  1. In the iOS app, navigate to a post editor.
  2. Add the Media & Text block.
  3. Upload a video the media section of the block.
  4. Verify that the video is successfully upload and attempt to preview within the editor by tapping the "play" button.

Expected behaviour

I would expect to be able to preview the video within the editor.

Actual behaviour

The video can not be previewed within the editor. Instead, it's necessary to preview the site to verify the video was successfully uploaded to the block.

Device information

fluiddot commented 6 months ago

@SiobhyB I can't reproduce this issue if the site is public. I have the gut feeling that the issue is related to https://github.com/wordpress-mobile/gutenberg-mobile/issues/5497 and private videos. We already solved it for the Video block but we'd also need to address other blocks with videos like Media & Test and Cover. If we confirm that this only happens with private videos, it would be great to update the issue.

SiobhyB commented 5 months ago

@fluiddot, I've been able to confirm this is specific to private sites after testing again, thanks for double-checking! I'll go ahead to update this ticket.