Support » Plugin: WP AMP Ninja » Convert the code of the Youtube’s videos in AMP

  • Resolved marcorroma

    (@marcorroma)


    Hi, is it possible to automatically convert the code of the videos embellished by YouTube?

    Example:
    <iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/OSxHi2–fDo” frameborder=”0″ allow=”accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture” allowfullscreen></iframe>

    Final code for AMP:
    <amp-iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/OSxHi2–fDo” frameborder=”0″ allow=”accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture” allowfullscreen></amp-iframe>

    At the moment if I embed a YouTube video in a post, it is not displayed in the AMP version.
    Thanks!

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