Title: Simple Private Video
Author: sumapress
Published: <strong>2019 年 10 月 31 日</strong>
Last modified: 2020 年 5 月 21 日

---

搜索插件

![](https://ps.w.org/simple-private-video/assets/banner-772x250.png?rev=2183986)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/simple-private-video/assets/icon-256x256.png?rev=2183986)

# Simple Private Video

 作者：[sumapress](https://profiles.wordpress.org/sumapress/)

[下载](https://downloads.wordpress.org/plugin/simple-private-video.zip)

 * [详情](https://cn.wordpress.org/plugins/simple-private-video/#description)
 * [评价](https://cn.wordpress.org/plugins/simple-private-video/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/simple-private-video/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/simple-private-video/#developers)

 [支持](https://wordpress.org/support/plugin/simple-private-video/)

## 描述

A simple and fast way to host your own videos and show them in private mode without
being able to download them and without external services dependencies like Vimeo,
YouTube, etc.

**Attention! experimental beta phase plugin**

Great news for course creators who continually hacked its contents!

With the video block of this plugin you can upload your videos to a private folder
on your own hosting and share them in your web only with your logged visitors.

The block has several configuration options:

 * Setup your own main color to make the video player more corporate and according
   to the web design.
 * Setup a preload image to show before the video is playing.
 * Add custom content to show when video it is not allowed in case of not logged
   users.

In other hand the video player allow users to setup: video playback speed, audio
volume, fullscreen and show whit _PiP(Picture-in-Picture)_ ( the video is contained
in a separate mini window that is always on top of other windows. This window stays
visible even when the browser is not visible.)

There is no reference to external services such as YouTube or Vimeo since you use
your own hosting and your own video player. With the advantages and disadvantages
that this implies like you need a good hosting for your website if you don’t want
depends on external services.

Because of you use your own video player, the plugin does everything possible so
that your videos cannot be downloaded even if they are your own customers who are
watching the videos the ones who also try to do download them. If they try do it
they will have a screen warning like:

    ```
    Hello username! this access is not allowed, so the administrator of MyDomain.com will be informed :(
    ```

The plugin works sharing videos like a pseudo video stream to avoid users to see
the video url to download it, because of the are not public url and the browser 
cant show the video without the php rendering and authorizations from the backend.

### Control who can watch your videos

By default the video is show only to logged user, but you can set more restriction
with custom configuration by the filter: `spv-show-private-video`

Example with Restric Content Pro:

    ```
    if ( function_exists( 'rcp_user_has_active_membership' ) ) {

        add_filter( 'spv-show-private-video', function( $show_private_video, $attributes ){

            return rcp_user_has_active_membership();

        }, 10, 2 );

    }
    ```

Like all WordPress filters remember to always return something in this case `true`
or `false`.

The first variable `$show_private_video` is `true` only in case the current user
is logged on your website. The video it will only be seen in the case you return`
true` and for that you can use the functions of others plugins for restrict content
like the above example with RCP.

The second variable `$attributes` is an array with all data about the configuration
of each video block with these keys: `color, blockAlignment, videoID, imageID, imageUrl,
content`.

### This is a solution for self hosting

**IMPORTANT! all videos are save it in your hosting, so keep it in mind for disk
space and bandwidth.
 Maybe a shared hosting it is not a good idea to work in this
way, especially if you will have many visualizations. Please values if it is not
better to use a VPS or even look for another type of solution instead of this plugin

To protect the folder with the videos, the plugin adds in its activation an `.htaccess`
file in `/ wp-content / uploads / spv-private /`
 Be carefoul with that because 
of **it will only work with Apache and depending on the configuration of your hosting.**
Nobody must to know direct url of each video but if your hosting ignoring .htaccess
file and show the videos please talk to the manager of your hosting to increase 
security and protect videos folder in the best way.

Please read carefully all **Frequently Asked Questions** at the bottom of this page
before using this plugin in production, and think if it is your best option to share
videos on your web. 🙂

### Feedback and support

I would be happy to receive your feedback to improve this plugin.
 Please let me
know through [support forums](https://wordpress.org/support/plugin/simple-private-video)
if you like it and please be sure to [leave a review.](https://wordpress.org/support/plugin/simple-private-video/reviews/#new-post).

Form more information you can visit the page [SumaPress](https://sumapress.com/)
or even visit [Github of Simple Private Video](https://github.com/SumaPress/simple-private-video)
where you can find all the development code of this plugin.

I hope it is useful for you and look forward to reading your reviews! 😉 Thanks!

## 屏幕截图

 * [[
 * Setup your videos with the video block on WordPress editor.
 * [[
 * Video player with your colors and many options available to users.

## 区块

该插件提供了 1 个区块.

 *   Simple Private Video

## 安装

 1. Upload `simple-private-video.php` to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Search into post or page the block `Private Video - self hosting` into `SumaPress`
    category.

## 常见问题

### What can I do with this plugin?

Upload and show private videos with a block only to logged users. IMPORTANT! all
videos are save it in your hosting, so keep it in mind for disk space and bandwidth.
Maybe a shared hosting it is not a good idea to work in this way, especially if 
you will have many visualizations.

### I no longer need Vimeo or Amazon S3?

It depends on your needs and your particular situation. Video sharing is not cheap
and if you use your own server with this plugin to serve video you have to make 
your own accounts and see what is the best for you and study the costs of your own
hosting around bandwidth spending with videos. Maybe you need a VPS and it is not
good idea work on shared hosting which ends up blocking you.

### How can I setup this plugin?

All configuration is within each block on WordPress editor.

### How can I do global setup?

We can avoid add an options page to the plugin to only put there default block configuration,
because of is already possible do that with native WordPress Block Editor.

Just add a new Private Video Block and set your favourite configuration with colors
and alternative content and then “Add to Reusable Blocks” with a custom name. In
this way you can set multiple default video blocks.

Whenever you want to add new Private Video Block just select your custom video block
and then “Convert to Regular Block” to allow put inside the new video with all your
previus default configuration already set.

### Is this plugin with self hosting video for everyone?

Only use this plugin if you know well what kind of hosting you have and what are
your expenses and limitations to use it as storage and video visualizations. Also
only after comparing other options like Vimeo, Youtube, Amazon S3, etc and determining
that this plugin is the best option for you.

### Is it really true that users will not be able to download the videos?

If they insist they will get it as with any other solution, but it has been raised
to be quite complicated especially for most people.

## 评价

![](https://secure.gravatar.com/avatar/b520826c6ae4f54d949723318f70f291ee382c1fe80dd6d68601404edd5d13f7?
s=60&d=retro&r=g)

### 󠀁[Excelente justo lo que estaba buscando 😀](https://wordpress.org/support/topic/excelente-justo-lo-que-estaba-buscando-d/)󠁿

 [federicorojas1100](https://profiles.wordpress.org/federicorojas1100/) 2021 年 
1 月 8 日

Aguardo la compatibilidad con 5.6 para poder actualizar el nucleo de WordPress, 
gracias!

![](https://secure.gravatar.com/avatar/a5ce95962f7fd6d98d088308b7ad6c123bc9ee0058f30c218d76a6db71d4eab9?
s=60&d=retro&r=g)

### 󠀁[Un plugin que hace lo que tiene que hacer, maravilloso](https://wordpress.org/support/topic/un-plugin-que-hace-lo-que-tiene-que-hacer-maravilloso/)󠁿

 [Jaime Gármar](https://profiles.wordpress.org/jaimegarmar/) 2020 年 12 月 27 日

Un plugin que hace lo que tiene que hacer, maravilloso. Necesitaba solo esta funcionalidad,
nada más, y justo encontré este y encima de un desarrollador colega de la comunidad
España!!! Olé

![](https://secure.gravatar.com/avatar/523169114ac0556291682c728e9eac454892a784f1a6ef25d244c607ae05fc6a?
s=60&d=retro&r=g)

### 󠀁[simplemente genial](https://wordpress.org/support/topic/simplemente-genial-4/)󠁿

 [Carlos Gutierrez Castro](https://profiles.wordpress.org/carlosgutierrez/) 2019
年 11 月 1 日 1 回复

El plugin es simplemente genial, hace lo que tiene que hacer a la perfección. La
interfaz de usuario es muy limpia y totalmente integrada con el diseño de WordPress.
Es una solución perfecta para los que quieren ofrecer videos privados en tu propio
WordPress, sin tener que depender de otras plataformas. Con este plugin los videos
los alojas tu y se encuentran completamente seguros, evitando que se puedan compartir
o descargar. El plugin es muy fácil de utilizar, solo tienes activar y añadir el
bloque de video privado. Puedes personalizar la imagen de portada, controles a mostrar
y colores para integrarlos con tu diseño. Sin duda un magnífico plugin.

 [ 阅读所有4条评价 ](https://wordpress.org/support/plugin/simple-private-video/reviews/)

## 贡献者及开发者

「Simple Private Video」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ sumapress ](https://profiles.wordpress.org/sumapress/)
 *   [ pablocianes ](https://profiles.wordpress.org/pablocianes/)

「Simple Private Video」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/simple-private-video/contributors)
为本插件所做的贡献。

[帮助将「Simple Private Video」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-private-video)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/simple-private-video/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/simple-private-video/)，或通过[RSS](https://plugins.trac.wordpress.org/log/simple-private-video/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/simple-private-video/)。

## 更新日志

#### 0.2.1

 * Fix fatal error with new version of Woo

#### 0.2.0

 * First beta publicly available version.

## 额外信息

 *  版本 **0.2.1**
 *  最后更新：**6 年前**
 *  活跃安装数量 **90+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.4.19**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-private-video/) 、 [Spanish (Chile)](https://cl.wordpress.org/plugins/simple-private-video/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/simple-private-video/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/simple-private-video)
 * 标签
 * [beta](https://cn.wordpress.org/plugins/tags/beta/)[video](https://cn.wordpress.org/plugins/tags/video/)
   [video block](https://cn.wordpress.org/plugins/tags/video-block/)[video player](https://cn.wordpress.org/plugins/tags/video-player/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-private-video/advanced/)

## 评级

 4.7 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/simple-private-video/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/simple-private-video/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/simple-private-video/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/simple-private-video/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/simple-private-video/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/simple-private-video/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/simple-private-video/reviews/)

## 贡献者

 *   [ sumapress ](https://profiles.wordpress.org/sumapress/)
 *   [ pablocianes ](https://profiles.wordpress.org/pablocianes/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/simple-private-video/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://sumapress.com/)