JW Player Secure Shortcode & WPBakery Element
Securely embeds JW Player videos using shortcodes and signed URLs. Includes a live asset search element inside WPBakery Page Builder.
by Nic Whitham · github.com/nicwhitham/jw-player-secure-shortcode-wpbakery-element
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/nicwhitham/jw-player-secure-shortcode-wpbakery-element/archive/refs/heads/main.zipSecurely embeds JW Player videos using shortcodes and signed URLs. Includes a live asset search element inside WPBakery Page Builder.
JW Player Secure Shortcode & WPBakery Element is a WordPress plugin designed to securely embed JW Player videos using shortcodes and signed URLs. It features a live asset search element integrated directly inside the WPBakery Page Builder.
Features • Secure Token Generation: Generates signed URLs via HMAC SHA-256 (HS256) for non-DRM .m3u8 manifests with a 1-hour expiration. • Shortcode Support: Embeds videos easily using the [jw_secure_video] shortcode. • WPBakery Integration: Dynamically pulls up to 250 video assets from your JW Player library into a dropdown element inside the page builder. • Admin Settings Page: Securely manages your API Secret Key, Site ID, and Default Player ID via WordPress options.
Installation & Setup Instructions
-
Upload the Plugin File: o Create a new folder in your WordPress plugins directory named jw-player-secure-shortcode (located at /wp-content/plugins/). o Save the plugin code into a PHP file inside that folder (e.g., jw-player-secure.php).
-
Activate the Plugin: o Log in to your WordPress Admin Dashboard. o Navigate to Plugins > Installed Plugins. o Locate JW Player Secure Shortcode & WPBakery Element and click Activate.
-
Configure Your Credentials: o Go to Settings > JW Secure Player in your WordPress dashboard. o Enter your JW Player API Secret Key / V2 Key, Property / Site ID, and Default Player ID. o Click Save Credentials.
Usage Guide
- Using the Shortcode You can embed videos directly into posts, pages, or text widgets using the shortcode:
[jw_secure_video id="YOUR_MEDIA_ID" player="OPTIONAL_PLAYER_ID"]
• id: (Required) The JW Player media asset ID. • player: (Optional) An 8-character player ID override. If left blank, it falls back to your default player configuration.
- Using with WPBakery Page Builder
- Open a page or post using the WPBakery Page Builder.
- Add a new element and look for the JW Secure Video element under the Content category.
- Select a video from the dynamic dropdown list fetched directly from your JW Player dashboard.
- Optionally specify a custom Player ID override, then save and publish your page.