Skip to content

dhimaskirana/protected-video

 
 

Repository files navigation

Protected Video CI

Gutenberg block WordPress plugin for embedding YouTube/Vimeo videos in a way that prevents users easily accessing the original video.

Features

  • 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

View Player Demo

Installation

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.

Development

To develop locally within a WordPress installation:

  1. Fork and clone this repository
  2. Symlink/map the clone location to /wp-content/plugins/protected-video in a local WordPress site
  3. Run yarn to install dependencies
  4. Run yarn start to build JS and watch for changes
  5. 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.

About

Prevent sharing of your embedded YouTube/Vimeo videos.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 80.8%
  • JavaScript 17.1%
  • CSS 1.9%
  • Shell 0.2%