This is a fork of the Projekktor project.
Tracking https://projekktorxl.svn.beanstalkapp.com/core/trunk
Current revision: 284 / v1.2.32
Here are some modifications I've made relative to the current state of SVN trunk
- All code is reformatted for more readability, and has had problematic non-ASCII characters removed
- Small change to controlbar plugin that attaches same bindings to scrubberknob as exist on the progress bar.
- Added option to disable cookies if a falsy (0, false, null) cookieExpiry value is set.
First, clone a copy of the main Projekktor git repo by running:
git clone git://github.com/fastcompany/projekktor.git
Install the grunt-cli package so that you will have the correct version of grunt available from any project that needs it. This should be done as a global install:
npm install -g grunt-cli
Enter the projekktor directory and install the Node dependencies, this time without specifying a global install:
cd projekktor && npm install
Make sure you have grunt
installed by testing:
grunt -version
Then, to get a build of Projekktor that mirrors the main project, minified (w/ Uglify.js) and linted (w/ JSHint - coming soon) type the following:
grunt
Other built in presets are:
grunt build-complete
grunt build-minimal
The built version of Projekktor will be put in the dist/
subdirectory, along with the minified copy and associated map file.
Special builds can be created that exclude subsets of Projekktor functionality.
See the documentation here: (http://www.projekktor.com/docs/build)
- playlist: Playlist functionality.
- jwflash: Default uses Flash audio / video support featuring Jarisplayer, use this flag for JWPlayer instead.
- youtube: Youtube API support.
- html: Displays images and HTML pages as regular content.
User plugins (download from (http://shop.projekktorxl.com/)) and place in a ./plugins directory:
mkdir plugins
- plugins/ima: VAST IMA ads.
- plugins/logo: Display a logo watermark.
- plugins/share: Sharing overlay options.
- plugins/tracking: Tracking plugin.
- plugins/tracks: Synchronized captions and subtitles.
- plugins/postertitle: Display title of current idling media item.
- plugins/audioslideshow: Time-index controlled image slideshows.
To create a custom build of the latest stable version, first check out the version:
git pull; git checkout $(git describe --abbrev=0 --tags)
Then, make sure all Node dependencies are installed and all Git submodules are checked out:
npm install && grunt
Create the custom build, use the grunt custom
option, listing the modules to be excluded. Examples:
Exclude all playlist functionality:
grunt custom:-playlist
Exclude all playlist functionality, but add youtube functionality:
grunt custom:-playlist,+youtube