Skip to content

Commit

Permalink
Add example usage to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wulfsolter committed Jan 1, 2016
1 parent 019c24f commit abc77b9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,19 @@ Such as:

![Example Screenshot](https://raw.githubusercontent.com/wulfsolter/videojs-endcapCTA/master/example1.png)

## Usage

```javascript
// Get the video.js object
var video = videojs('video-id', {
"controls": true
});

// Add a the endcap content
video.endcapCTA({
html: '<section class="endcapCallToActionContent">....</section>',
run: function() {
// This runs upon creation of endcapCTA, just after video starts playing
}
});
```

0 comments on commit abc77b9

Please sign in to comment.