Wordpress Discussion

Out of context: Reply #43

  • Started
  • Last post
  • 164 Responses
  • microkorg0

    GETTING YOUTUBE 360 VIDEOS WORKING ON WORDPRESS

    If you've read any of the previous threads you'll have seen that I was having bother with a bought theme. When I was embedding a 360 video (the embed is automatically sniffed when you post url or yt embed in post) in a post.

    What was happening was YT was looking at the size of the iframe the video was in then stripping the screen size down which meant that the 360 feature wasn't working.

    My theme starts with the video smaller then when you click to play it goes larger.

    Way I've got round this after lots of faffing about was to put 4K dimensions into the embed code given by YT and add that into the post.

    e.g

    <iframe width="4096" height="2160" src="https://www.youtube.com/embed/***************" frameborder="0" allowfullscreen></iframe>

    Found that my theme would keep the video sizes that it originally had visually but YT thought it was larger so shows the video at 4K resolution :)

View thread