Extending [video] Shortcode with new features.
FREE: Custom Logo & Branding, GDPR Consent, HLS, M(PEG)-DASH, Live Streaming, Configure Initial Volume and lot more.
Requirements
- WordPress 4.9.5 or higher
- PHP 5.3+
Download & Installation
- Download the plugin.
- From the WordPress Admin Panel, click on Plugins => Add New
- Click on Upload, so you can directly upload your plugin zip file.
- Use the browse button to select the plugin zip file that was downloaded, and then click on Install Now.
- Once installed, click “Activate”
Show your Logo as Watermark on the Player
This is a key feature for which all major video player plugins charge you a huge amount. Luckily, this is available for FREE in the WP Video Enhanced plugin.
Adding your Logo to the player
- Go to “Video Enhanced” page from your WordPress admin panel.
- Enable “Show Logo” option.
- Add your “Logo Image”, configure the “Logo Position” option.
- Save the Changes. That’s it.
Show GDPR Consent on embedded YouTube/Vimeo videos
Unless you have been living under a rock for the past couple of years, you will no doubt be aware of the new General Data Protection Regulation (GDPR) that has been already in force after May 25, 2018. If you’re not aware of this legislation, check WPMU DEV article to make your WordPress website GDRP compliance.
If you embed YouTube or Vimeo videos on your website either by using the shortcode or by just providing the YouTube/Vimeo URL in posts/pages, you definitely need to obtain explicit consent. But, WordPress doesn’t provide the option to show consent to videos. No Worries, WP Video Enhanced plugin comes with an option to show consent on these content and make you GDPR compliance. Kindly follow the steps below to get this done.
Showing the consent
- Go to “Video Enhanced” page from your WordPress admin panel.
- Enable “GDPR – Show Consent” option.
- Edit the “GDPR – Consent Message” as you like.
- Save the Changes. That’s it.
Now, the plugin will show consent on your embedded videos ( YouTube/Vimeo ). Once the user agrees, he/she can enjoy watching your videos. The user’s consent is cached. So, it’s not shown again.
Playing Live Streams
Installing WP Video Enhanced plugin allows you to play HTTP Live Streaming (HLS) and M(PEG)-DASH files using the WordPress [video]
shortcode. Kindly refer the supported attributes below,
Supported Attributes
- src – You can add both your HLS and M(PEG)-DASH feeds simply by using this attribute.
- m3u8 – You can also add your HLS feed using this attribute. Useful when you like to add both the feeds as one falback to another.
- mpd – Like HLS feed, you can use this attribute to add a M(PEG)-DASH stream. Useful when you like to add both the feeds as one falback to another.
- live – “true” or “false.” When used with the value “true”, a small text “Live Broadcast” is displayed in place of the player’s progress bar. So, the users can understand that the video played is Live.
Shortcode Examples
[video src="https://mysite.com/stream.m3u8"]
– HLS only[video m3u8="https://mysite.com/stream.m3u8" mpd="https://mysite.com/stream.mpd"]
– Both HLS and M(PEG)-DASH[video src="https://mysite.com/stream.mpd" live="true"]
– Is a Live Stream?
Configuring default volume of the player
This is one of the most asked features on the internet. WP Video Enhanced plugin adds a setting in the plugin’s settings page to configure the initial volume level of the player.
Users can also change the player volume using the player control. The volume, the user set using the player control bar is stored in the browser cookie. So, next time the users visit your website, he/she will have a volume of his previous setting.