VideoJS plugin for Fansoro
PHP Smarty
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
templates
CHANGELOG.md
LICENSE
README.md
screenshot.png
videojs.php
videojs.yml

README.md

VideoJS

VideoJS

VideoJS plugin for Fansoro with Video.js

Video.js is a JavaScript and CSS library that makes it easier to work with and build on HTML5 video, today.

Video.js provides a common controls skin built in HTML/CSS, fixes cross-browser inconsistencies, adds additional features like fullscreen and subtitles, manages the fallback to Flash or other playback technologies when HTML5 video isn't supported, and also provides a consistent JavaScript API for interacting with the video.

Installation

See this instruction

Usage

In page content

{video mp4="http://video-js.zencoder.com/oceans-clip.mp4"}

In template

{video(['mp4'=>'http://video-js.zencoder.com/oceans-clip.mp4'])}

Parameters

Name Description
mp4 MP4 Source
webm WebM Source
ogg Ogg Source
poster Poster image
preload Preload the video?
autoplay Autoplay the video?
width Width
height Height

License

See LICENSE