Gutenberg block WordPress plugin for embedding YouTube/Vimeo videos in a way that prevents users easily accessing the original video.
- Plyr player used to overlay default player with custom controls
- Player modifications to always prevent clicking the default player
- Encodes video ID in HTML to prevent finding it via “View Source”
- Settings page to configure the player theme to match your site
Install from the WordPress Plugin Directory or grab a ZIP from the releases page.
If you choose manual ZIP installation note that this plugin supports Git Updater.
To develop locally within a WordPress installation:
- Fork and clone this repository
- Symlink/map the clone location to
/wp-content/plugins/protected-video
in a local WordPress site - Run
yarn
to install dependencies - Run
yarn start
to build JS and watch for changes - Activate the "Protected Video" plugin in your local WordPress site
There's also a standalone player demo in /docs
which can be served with e.g. npx serve docs
.