Chapter in this post:
Many of you using WordPress will simply embed videos in your posts using the URL from YouTube. WordPress then recognizes that it is a film that is on YouTube and automatically builds the appropriate code for embedding it around the URL. In this way, all you have to do is copy and paste the YouTube URL into the post.
However, if you want to embed a video that is not on such a video platform as YouTube, WordPress only displays the URL in the post and does not create a media player to display the video directly in the post. How to do it anyway, I'll show in this post.
The whole thing with auto-detection and embedding doesn't just work with YouTube videos, it works with many other platforms:
The easiest way to embed a video in a post or page without YouTube and Co. works with the WordPress media player. I have to admit, I only noticed that there was such a thing after I had already installed a plugin for embedding.
But the way is very simple:
Of course, you can also create the shortcode yourself if the video is not available in the media library, for example. This format is used for this:
There are also options that can be built into this shortcode. Among other things, the size can be set with "width" and "height". You can find a full list of options here at WordPress.org.
The first option I chose before discovering WordPress' own media player system was the WordPress plugin "Easy video player".
This actually only has a few features and options that set it apart from the WordPress player as an alternative. I'll translate from the plugin homepage and comment on it:
So the bottom line is that there isn't much to be said for installing another plug-in for the videos. I'd rather keep WordPress lean and use the WordPress shortcode for embedding.
To get around this, the video ended up on the client's hosting space.
YouTube, video and the like are a good way of reaching new visitors and thus potential customers relatively quickly. The optimization of loading times for all possible devices is also a plus point that has to be attributed to the video platforms.
However, if privacy is a concern, hosting the video on your own server may be a better choice. I think you have to evaluate this on a case-by-case basis.
In the case of my customer, self-hosting was definitely the right decision. WordPress makes it very easy to integrate the video using a shortcode.
Jens has been running the blog since 2012. He appears as Sir Apfelot for his readers and helps them with problems of a technical nature. In his free time he drives electric unicycles, takes photos (preferably with his iPhone, of course), climbs around in the Hessian mountains or hikes with the family. His articles deal with Apple products, news from the world of drones or solutions for current bugs.