Title: VideoZen
Author: Jose Conti
Published: <strong>January 22, 2013</strong>
Last modified: January 25, 2013

---

Search plugins

![](https://ps.w.org/videozen/assets/banner-772x250.png?rev=657049)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/videozen_5c7dc1.svg)

# VideoZen

 By [Jose Conti](https://profiles.wordpress.org/jconti/)

[Download](https://downloads.wordpress.org/plugin/videozen.1.0.1.zip)

 * [Details](https://pcd.wordpress.org/plugins/videozen/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/videozen/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/videozen/#installation)
 * [Development](https://pcd.wordpress.org/plugins/videozen/#developers)

 [Support](https://wordpress.org/support/plugin/videozen/)

## Description

VideoZen is an integrated plugin using VideoJS player, Zencoder.com and Amazon S3
services.

By VideoZen, put Self hosted video on your WordPress or WordPress multisite, be 
as simple as activating the plugin, get an account at Amazon S3 and Zencoder, upload
a video in Media and put a simple WordPress shortcode in a page or post.

When the page or post is viewed, the plugin will build everything you need with 
all the videos formats needed to be reproduced in any browser, tablet or mobile 
from Amazon S3. And with Flash fallback.

The Plugin also supports subtitles type VTT, which are the standard HTML5 . Just
have to upload it to WordPress media with the name that indicate you the plugin 
and will be automatically inserted into the video.

The existing Shortcode are:

Simple shortcode will display the original size of the video

    ```
    [VIDEOZEN: id_media]
    ```

Shortcode for the width, the height will be calculated automatically:

    ```
    [VIDEOZEN: id_media W:234]
    ```

Shortcode full specified width and height:

    ```
    [VIDEOZEN: id_media W:234 H:120]
    ```

The plugin is compatible with WordPress and WordPress Multisite.

On WordPress Multisite, can be activated in different ways.

 * For the Network: VideoZen be activated for the entire network and can be configured
   from the Network menu. All sites have access to the plugin and can upload videos.
 * Site by site: Site by site and add different configurations on each site.
 * Site by site with global settings: Selectable site by site and use DEFINES sets
   in the file wp-config.php

The define to add in the wp-config.php file to configure as globally are the following:

    ```
    define("CONST_VIDEOZEN_USE_DEFINES" , TRUE);
    define("CONST_VIDEOZEN_API_KEY" , "123ag");      //ZenCoder API key
    define("CONST_VIDEOZEN_BUCKET" , "bucketname"); //do not include the s3:// prefix
    define("CONST_VIDEOZEN_S3WEB" , "s3.amazonaws.com/bucket");            //URL to access via web the Amazon S3 bucket, do not include the http:// prefix
    define("CONST_VIDEOZEN_AUTH" , "31415926abc123ABC");        //Secret passphrase between your site and zencoder, use a random letters and number string larger than 16 characters
    define("CONST_VIDEOZEN_LANG" , "en|English\nes|Spanish");         // Available languages, each language should be formatted as "code|language name", MUST USE DOUBLE QUOTES, separate multiple languages using \n (carriage return), eg: "en|English\nes|Spanish"
    ```

The global configuration is very interesting for WordPress Multisite sites that 
want to offer free or paid video service for network sites.

## Installation

 1. Upload the “videozen” folder to the “/wp-content/plugins/” directory, or download
    through the “Plugins” menu in WordPress
 2. Activate the plugin through the “Plugins” menu in WordPress. Network activate for
    Multisite or site by site:

On WordPress Multisite can be activated in different ways.

 * For the Network: VideoZen be activated for the entire network and can be configured
   from the Network menu. All sites have access to the plugin and can upload videos.
 * Site by site: Site by site and add different configurations on each site.
 * Site by site with global settings: Selectable site by site and use DEFINES sets
   in the file wp-config.php

At this point, you will need an [Zencoder account](http://zencoder.com/) and [Amazon S3 account](http://aws.amazon.com/s3/).

 1. Create a S3 Bucket
 2. Add this policy to the Bucket:

If you dont need to protect from hotlinking use this policy(Please, remplace YOURBUCKETNAME
with your bucket name) :

    ```
    {
        "Version": "2008-10-17",
        "Id": "ZencoderBucketPolicy",
        "Statement": [
            {
                "Sid": "Stmt1295042087538",
                "Effect": "Allow",
                "Principal": {
                    "AWS": "arn:aws:iam::395540211253:root"
                },
                "Action": [
                    "s3:PutObjectAcl",
                    "s3:GetObject",
                    "s3:ListMultipartUploadParts",
                    "s3:PutObject"
                ],
                "Resource": "arn:aws:s3:::YOURBUCKETNAME/*"
            },
            {
                "Sid": "Stmt1295042087538",
                "Effect": "Allow",
                "Principal": {
                    "AWS": "arn:aws:iam::395540211253:root"
                },
                "Action": [
                    "s3:ListBucketMultipartUploads",
                    "s3:GetBucketLocation"
                ],
                "Resource": "arn:aws:s3:::YOURBUCKETNAME"
            },
            {
                "Sid": "3",
                "Effect": "Allow",
                "Principal": {
                    "AWS": "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity E323DPV2F48RSG"
                },
                "Action": "s3:GetObject",
                "Resource": "arn:aws:s3:::YOURBUCKETNAME/*"
            }
        ]
    }
    ```

If you want to protect from hotlinking, add this policy (Please, remplace YOURBUCKETNAME
with your bucket name and yourdomain.com for your domain website) :

    ```
    {
        "Version": "2008-10-17",
        "Id": "ZencoderBucketPolicy",
        "Statement": [
            {
                "Sid": "Stmt1295042087538",
                "Effect": "Allow",
                "Principal": {
                    "AWS": "arn:aws:iam::395540211253:root"
                },
                "Action": [
                    "s3:PutObjectAcl",
                    "s3:GetObject",
                    "s3:ListMultipartUploadParts",
                    "s3:PutObject"
                ],
                "Resource": "arn:aws:s3:::YOURBUCKETNAME/*"
            },
            {
                "Sid": "Stmt1295042087538",
                "Effect": "Allow",
                "Principal": {
                    "AWS": "arn:aws:iam::395540211253:root"
                },
                "Action": [
                    "s3:ListBucketMultipartUploads",
                    "s3:GetBucketLocation"
                ],
                "Resource": "arn:aws:s3:::YOURBUCKETNAME"
            },
            {
                "Sid": "3",
                "Effect": "Allow",
                "Principal": {
                    "AWS": "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity E323DPV2F48RSG"
                },
                "Action": "s3:GetObject",
                "Resource": "arn:aws:s3:::YOURBUCKETNAME/*"
            },
            {
                "Sid": "2- Allow all referrers to xyz.htm except those listed.",
                "Effect": "Deny",
                "Principal": {
                    "AWS": "*"
                },
                "Action": "s3:GetObject",
                "Resource": "arn:aws:s3:::YOURBUCKETNAME/*",
                "Condition": {
                    "StringNotLike": {
                        "aws:Referer": [
                            "http://www.yourdomain.com/*",
                            "http://yourdomain.com/*",
                            "http://www.google.com/reader/*"
                        ]
                    }
                }
            }
        ]
    }
    ```

If you want to protect from hotlinking and allow direct downloads, add this policy(
Please, remplace YOURBUCKETNAME with your bucket name and yourdomain for your domain
website) :

    ```
    {
        "Version": "2008-10-17",
        "Id": "ZencoderBucketPolicy",
        "Statement": [
            {
                "Sid": "Stmt1295042087538",
                "Effect": "Allow",
                "Principal": {
                    "AWS": "arn:aws:iam::395540211253:root"
                },
                "Action": [
                    "s3:PutObjectAcl",
                    "s3:GetObject",
                    "s3:ListMultipartUploadParts",
                    "s3:PutObject"
                ],
                "Resource": "arn:aws:s3:::YOURBUCKETNAME/*"
            },
            {
                "Sid": "Stmt1295042087538",
                "Effect": "Allow",
                "Principal": {
                    "AWS": "arn:aws:iam::395540211253:root"
                },
                "Action": [
                    "s3:ListBucketMultipartUploads",
                    "s3:GetBucketLocation"
                ],
                "Resource": "arn:aws:s3:::YOURBUCKETNAME"
            },
            {
                "Sid": "3",
                "Effect": "Allow",
                "Principal": {
                    "AWS": "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity E323DPV2F48RSG"
                },
                "Action": "s3:GetObject",
                "Resource": "arn:aws:s3:::YOURBUCKETNAME/*"
            },
            {
                "Sid": "2- Allow all referrers to xyz.htm except those listed.",
                "Effect": "Deny",
                "Principal": {
                    "AWS": "*"
                },
                "Action": "s3:GetObject",
                "Resource": "arn:aws:s3:::YOURBUCKETNAME/*",
                "Condition": {
                    "StringNotLike": {
                        "aws:Referer": [
                            "http://www.yourdomain.com/*",
                            "http://yourdomain.com/*",
                            "http://www.google.com/reader/*"
                        ]
                    },
                    "Null": {
                        "aws:Referer": false
                    }
                }
            }
        ]
    }
    ```

5.- Add all data on VideoZen configuration page or add `define` to `wp-config.php`

 1. Updates are automatic. Click on “Upgrade Automatically” if prompted from the admin
    menu. If you ever have to manually upgrade, simply deactivate, uninstall, and repeat
    the installation steps with the new version.

## FAQ

No Frequently Asked Questions at this time

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“VideoZen” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ Jose Conti ](https://profiles.wordpress.org/jconti/)

[Translate “VideoZen” into your language.](https://translate.wordpress.org/projects/wp-plugins/videozen)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/videozen/), check out
the [SVN repository](https://plugins.svn.wordpress.org/videozen/), or subscribe 
to the [development log](https://plugins.trac.wordpress.org/log/videozen/) by [RSS](https://plugins.trac.wordpress.org/log/videozen/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1 – 25 January 2013

 * Added define(“CONST_ZENCODER_BASE_URL”, “https://app.zencoder.com/api/v2”); prompted
   by [Matt McClure ](https://twitter.com/matt_mcclure) Thank’s a lot.
 * Some some UI improvements. prompted by [Matt McClure ](https://twitter.com/matt_mcclure)
   Thank’s a lot.

#### 1.0.0 – 21 January 2013

 * Initial Release

## Meta

 *  Version **1.0.1**
 *  Last updated **13 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.3 or higher **
 *  Tested up to **3.5.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/videozen/)
 * Tags
 * [HTML5](https://pcd.wordpress.org/plugins/tags/html5/)[video](https://pcd.wordpress.org/plugins/tags/video/)
   [videojs](https://pcd.wordpress.org/plugins/tags/videojs/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/videozen/advanced/)

## Ratings

No reviews have been submitted yet.

[Add my review](https://wordpress.org/support/plugin/videozen/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/videozen/reviews/)

## Contributors

 *   [ Jose Conti ](https://profiles.wordpress.org/jconti/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/videozen/)