• [ Moved to the Fixing WordPress sub-forum. ]

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • You should be able to just drop the YouTube video URL in so it uses the default YouTube player. Does that work any better?

    Just drop in the YouTube URL without any shortcodes and WordPress should auto embed it.

    Thread Starter little_bird

    (@little_bird)

    Hi Thomas

    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.

    That part I’m unaware of unfortunately.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with native video player’ is closed to new replies.