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>