/clappr-playback-name-plugin

A simple plugin for Clappr that adds a label with the playback's name

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Clappr Playback's Name Plugin

Usage

Add both Clappr and Playback's Name plugin scripts to your HTML:

<head>
  <script type="text/javascript" src="http://cdn.clappr.io/latest/clappr.min.js"></script>
  <script type="text/javascript" src="dist/playbackname.js"></script>
</head>

Then just add PlaybackName into the list of plugins of your player instance:

var player = new Clappr.Player({
  source: "http://your.video/here.mp4",
  plugins: {
    'container': [PlaybackName]
  }
});

Note: There is a minified version served through CDNs too:

<script type="text/javascript" 
        src="//cdn.jsdelivr.net/clappr.playback-name/latest/playbackname.min.js"></script>