
Product
Introducing Data Exports
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.
@filmgardi/videojs-controls-badge
Advanced tools
The `controls-badge` plugin show current value of multiple value component as badge icon.
The controls-badge plugin show current value of multiple value component as badge icon.
npm install --save @filmgardi/videojs-controls-badge
To include videojs-controls-badge on your website or web application, use any of the following methods.
<script> TagThis is the simplest case. Get the script in whatever way you prefer and include the plugin after you include video.js, so that the videojs global is available.
<script src="//path/to/video.min.js"></script>
<script src="//path/to/videojs-controls-badge.min.js"></script>
<script>
var player = videojs('my-video');
const badgeConf = {
volume: true,
subtitle: true,
quality: true
};
player.controlsBadge(badgeConf);
</script>
Result of using videojs-controls-badge plugin:

When using with Browserify, install videojs-controls-badge via npm and require the plugin as you would any other module.
var videojs = require('video.js');
// The actual plugin function is exported by this module, but it is also
// attached to the `Player.prototype`; so, there is no need to assign it
// to a variable.
require('@filmgardi/videojs-controls-badge');
var player = videojs('my-video');
const badgeConf = {
volume: true,
subtitle: true,
quality: true
};
player.controlsBadge(badgeConf);
When using with RequireJS (or another AMD library), get the script in whatever way you prefer and require the plugin as you normally would:
require(['video.js', '@filmgardi/videojs-controls-badge'], function(videojs) {
var player = videojs('my-video');
const badgeConf = {
volume: true,
subtitle: true,
quality: true
};
player.controlsBadge(badgeConf);
});
MIT. Copyright (c) m-saffari <mohamadsaffari90@gmail.com>
FAQs
The `controls-badge` plugin show current value of multiple value component as badge icon.
We found that @filmgardi/videojs-controls-badge demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.

Research
/Security News
Docker and Socket have uncovered malicious Checkmarx KICS images and suspicious code extension releases in a broader supply chain compromise.