Need equivalent embed code for x_video_player shortcode

Certain parts of of my site does not evaluate shortcode but I need self hosted video to show up there so I need equivalent embed code for [x_video_player type="16:9" m4v="url"]

What would that be? or how do I make sure self hosted videos show up without using shortcode?

Hey,

This article should help you: https://theme.co/blog/how-to-optimize-your-youtube-video-embeds/

I need for selfhosted video not youtube. What would the embed code be so I can using x native player?

Hi again,

You can use the following code for self hosted videos:

<video controls>
  <source src="mov.mp4" type="video/mp4">
  <source src="mov.ogg" type="video/ogg">
  Your browser does not support HTML5 video.
</video>

Just change URL in src with actual URL. For more information please see https://www.w3schools.com/html/html5_video.asp and https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_video

Cheers!

1 Like