Name: html5-video-plugins
Owner: Vox Media
Description: HTML5 Video Plugins
Forked from: ooyala/html5-video-plugins
Created: 2016-07-20 02:19:53.0
Updated: 2016-07-20 02:19:54.0
Pushed: 2016-07-20 01:21:00.0
Homepage: null
Size: 6030
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Open-source interfaces to video renderers that plug into the Ooyala V4 core player. This README contains introduction, setup, test, and build sections.
html5-video-plugin builds js files that are used as unique plugins to the Ooyala core V4 player. It interfaces with the video technology framework of the Ooyala core V4 player to decode and render videos. All static files necessary to create and run an Ooyala player are hosted and can be accessed publicly. This repo is available to be git cloned or forked and be modified by developers (terms and condition apply).
core.js is a lightweight core player that enables core player functionality and provides a framework for video plugins. Most additional capabilities such as ads, discovery, and skin are separated from core player JS. To enable this functionality, you may be required to load additional plugins.
Install node.js for Mac: http://howtonode.org/how-to-install-nodejs
Sync submodules by running the following commands:
t submodule init
t submodule update
Install npm:
Get https://npmjs.org/install.sh and install with sh install.sh
. Make sure to install npm 1.1.16 or
above. If you have an older version of npm, you'll need to do sudo npm uninstall npm -g
before
re-installing.
Also you need the following global npm packages:
m install -g npm
m install -g node-gyp
Install the node packages using npm:
m install
[Optional] Install the node packages for submodules using npm:
[submodule]
m install
This is automatically done during building.
Install Flex SDK v4.6.0 from http://download.macromedia.com/pub/flex/sdk/flex_sdk_4.6.zip
Change path of FLEX_HOME in build_flash.xml to the path where Flex SDK is installed
perty name="FLEX_HOME" value="/opt/flex_sdk_4.6.0"/>
Check if ANT is already installed or not by typing “ant -version”. If ant is installed, you will get output. If not, you will receive a 'command not found' error. If it is not already installed install using the steps below.
a. Check if brew is installed by typing “brew help”. If brew is installed, you will receive help information. If not, you will receive a 'command not found' error. If it is not already installed install using
by -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
b. Install ANT using
ew install ant
Set ANT_HOME environment variable.
a. In your home folder, open the .bash_profile file.
b. Add the following lines to the file, substituting the directory where you installed Ant:
HOME=/apache-install-dir/apache-ant-version
=$PATH:$HOME/bin:$ANT_HOME/bin
rt ANT_HOME PATH
Unit tests live in the folder “test”. Unit tests are based on the “jest” framework. Run tests with the command:
lp test
Minify and package the plugins by running the following command:
lp build
To automatically build the plugins when a file is changed, run the command:
lp watch
To build the jsdocs style documentation, run the command:
lp docs
This will put the documentation into the /docs folder. Open /docs/index.html to view the docs home page.