Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

clappr/clappr-playback-name-plugin

Repository files navigation

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>

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages