Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
phhu committed Feb 22, 2016
1 parent 8357713 commit 7b41124
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ You can set the buttons not to create using the ```createButtons``` setup option
API
---

The plugin is controlled by an internal opts object that looks something like this.

```javascript
{"start":0,"end":10,"enabled":false,"moveToStartIfBeforeStart":true,"moveToStartIfAfterEnd":true,"pauseOnLoop":false}
```

These can be set on plugin setup or dynamically via API commands.

Assuming ```video``` references a videojs player instance:
* Look at ```video.abLoopPlugin``` for functions to call to control the loop.
* The API methods can be chained together like this: ```video.abLoopPlugin.setStart().setEnd(8).goToStart().enable();```
Expand Down

0 comments on commit 7b41124

Please sign in to comment.