voxmedia/html5-video-plugins

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

html5-video-plugins

Open-source interfaces to video renderers that plug into the Ooyala V4 core player. This README contains introduction, setup, test, and build sections.

High Level Overview

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).

Plug and Play capability

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.

Getting started

  1. Install node.js for Mac: http://howtonode.org/how-to-install-nodejs

  2. Sync submodules by running the following commands:

    t submodule init
    t submodule update
    
  3. 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
    
  4. Install the node packages using npm:

    m install
    
  5. [Optional] Install the node packages for submodules using npm:

     [submodule]
    m install
    

    This is automatically done during building.

Install FLEX and ANT on Mac for building OSMF Flash Plugin
  1. Install Flex SDK v4.6.0 from http://download.macromedia.com/pub/flex/sdk/flex_sdk_4.6.zip

  2. 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"/>
    
  3. 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
    
  4. 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
    

Testing

Unit tests live in the folder “test”. Unit tests are based on the “jest” framework. Run tests with the command:

lp test

Building

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
JS Documentation

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.