Hi
Today I wanted to use the native shortcode video of WordPress to add a YouTube video in a post. Everything looks fine until I tried so exit from the full screen mode. After pressing the key Esc, the video didn’t recover its initial height and it’s totally out of dimensions. I deactivated all the plugins but the problem continues.
I also tried to use the shortcode in many other posts but I got the same result.
This was the syntax I used: [video src="https://www.youtube.com/watch?v=IAh_fWI5svE"]
Here is one example: https://www.elrunrun.net/video-jessica-cediel-y-jessie-vargas/
I don’t know where could be the problem or what scripts I should check in my theme.
Thanks
]]>Just drop in the YouTube URL without any shortcodes and WordPress should auto embed it.
]]>Thanks for your answer. I know YouTube videos can be embedded just using the URL, but I just wanted to set my own CSS for the player which is possible to do with the native player, that’s why I prefer it.
I checked the code at the browser. The problem is that some JavaScript is not calculating the correct height of the iframe when I exit full screen and I don’t know which code does it.
]]>