This repository has been archived by the owner on Jan 24, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated our plugin docs to include the best practices guide as well a…
…s better links
- Loading branch information
Showing
3 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
title: Players | ||
--- | ||
|
||
# Players # | ||
|
||
In addition to Popcorn's plugin factory, Popcorn also provides a way for users to create their own media player ( other than the HTML5 one ) to create and fire events off of. | ||
|
||
## Document and Directory Setup ## | ||
|
||
1. Create a folder popcorn-js/players/playername | ||
2. Create 4 files: | ||
* **popcorn.playername.html** – The demo file, contains html to run player | ||
* **popcorn.playername.js** – The code file, contains player | ||
* **popcorn.playername.unit.html** – The demo test file, contains html test framework | ||
* **popcorn.playername.unit.js** – The code test file, contains unit tests | ||
|
||
## Making the player ## | ||
|
||
Developing a player for Popcorn is a bit more complicated than creating a plugin. In order for a player to work correctly you need to handle all [events]() that the HTML5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters