Support » Plugin: Gutenberg » Gutenberg convert to blocks: videos are not being converted

  • Resolved Marc

    (@marcdk)


    Hi,

    I have several videos with posters in my posts. Like this for example:

    <p>[video width="860" height="484" mp4="https://marc.tv/media/2019/01/shenmue-vergleich-gdemu.mp4" poster="https://marc.tv/media/2019/01/gdemu_shenmue_comp-1.jpg"][/video]</p>

    When I convert them with Gutenbergs own migration function “convert to blocks” I get an empty video block:

    <figure class="wp-block-video"></figure>

    Any idea what might the problem? Or is this a known bug.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sometimes the conversion manages to convert video so this old legacy code:

    [video width="1920" height="1080" mp4="https://marc.tv/media/2018/11/spider-cop-swinging.mp4" poster="https://marc.tv/media/2018/11/spider-cop-swining-1.jpg"][/video]

    stays as this:

    [video width="1920" height="1080" mp4="https://marc.tv/media/2018/11/spider-cop-swinging.mp4" poster="https://marc.tv/media/2018/11/spider-cop-swining-1.jpg"][/video]

    after a conversion. But why can’t it converted to a video block?

    Hi Marc, I was able to reproduce this bug, and have reported it to the Gutenberg team:

    https://github.com/WordPress/gutenberg/issues/15869

    You can follow that issue if you’d like to be notified of progress.

    In the mean time, I’d recommend leaving manually creating a new Embed block, and pasting in the URL for the video.

    It was fixed in Gutenberg with https://github.com/WordPress/gutenberg/pull/16588 and released as part of WordPress 5.3 release.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.