This repository is for managing the JW Player Developer Demos. It includes demos and code samples from the JW Player team as well as a Developer Showcase highlighting demos submitted by our developer community.
All JW Developer demos can be downloaded and run locally. Build instructions and required components are outlined below.
If you don't already have Node.js, please download and install it now.
Then, from the project root directory, jwdeveloper-demos/
:
-
Install Node modules:
$ [sudo] npm install
-
Install Bower components:
$ [sudo] bower install
-
Run Grunt to compile changes:
$ grunt
-
Run Grunt to compile changes and serve locally:
$ grunt serve
Each demo contains the following elements:
assets/
css/
style.css
js/
main.js
config.json
index.html
Only index.html
and config.json
are required for the build. In a basic setup, index.html
must contain a single line player embed and config.json
must include the demo title, description, and license.
Local assets (such as images, .txt files, etc...) referenced within the demo should be saved in the assets
directory.
We encourage you to use our Demo Starter Kit as the basis for your project.
Our developer community continues to amaze us with unique implementations of our player. We have created our Developer Showcase to help show off your work to other developers.
Submitting a demo for consideration for the JW Developer Showcase is easy.
- Fork this repository
- Duplicate the demo starter kit and build your demo
- Update your config file (see instructions below)
- Submit a pull request
Our Developer Relations Manager will review all submissions. Please note that we only publish a few, carefully selected apps on the JW Developer Showcase and that we do not reply to submissions personally.
By submitting you are agreeing to license your demo under the Apache 2.0 license.
The config.json
file provides metadata about your demo. It will be used to populate information about your demo on the page. Only title, description, and license are required to build the demo, but we ask that you complete all fields for Developer Showcase demo submissions.
{
"title": "",
"description": "",
"license": "Free|Premium|Ads|Enterprise",
"showCode": true|false,
"layout": "horizontal|vertical",
"apiCalls": [],
"author": {
"name": "",
"githubUsername": ""
}
}
Key | Type | Value Description |
---|---|---|
title |
string |
Demo title* |
description |
string |
A brief description of your demo* |
license |
string |
The license type necessary to recreate your demo* |
showCode |
boolean |
Displays demo player with code snippet when true , without code snippet when false |
layout |
string |
Displays code snippet to right of demo player on horizontal or under demo player on vertical |
apiCalls |
array |
List of JW Player Javascript API calls used in your demo. For example: .on('ready') |
author.name |
string |
Your name |
author.githubUsername |
string |
Your GitHub username |
You can join the JW Developer Community and follow us on Twitter @JWDevelopers to be among the first to know about beta test opportunities, new developer documentation and toolkits, developer community events, and more.