Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 660 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 660 Bytes

videojs-endcapCTA

Endcap Call-To-Action plugin for video.js

At the end of a video, display your custom HTML/JS Call To Action.

Such as:

  • Contact Us form
  • Links to more information
  • Redirect to store / product

Example Screenshot

Usage

// 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
  }
});