videojs-zapping
A plugin to simulate the experience of watching live TV but in the browser.
Table of Contents
Overview
Installation
Install videojs-zapping via npm:
npm install videojs-zapping
Usage
To include videojs-zapping on your website or web application, use any of the following methods.
It is mandatory to add an id to the <video>
tag that matches the argument passed to the videojs()
function. In this case the id of the video must be 'my-video'
<script>
Tag
This is the simplest case. Get the script in whatever way you prefer and include the plugin after you include video.js, so that the videojs
global is available.
Browserify/CommonJS
When using with Browserify, install videojs-zapping via npm and require
the plugin as you would any other module.
var videojs = ; // The actual plugin function is exported by this module, but it is also// attached to the `Player.prototype`; so, there is no need to assign it// to a variable.; var player = ; player;
API Documentation
For the API Documentation, visit this page.
License
Apache-2.0. Copyright (c) Qualabs