Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@playkit-js/banner-overlay

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@playkit-js/banner-overlay

Banner overlay plugin for Kaltura player - displays configurable text banners with various positioning and styling options

latest
Source
npmnpm
Version
1.1.0-canary.0-6325504
Version published
Weekly downloads
89
-50.28%
Maintainers
6
Weekly downloads
 
Created
Source

Build Status

playkit-js-banner-overlay

playkit-js-banner-overlay is a kaltura player plugin that provides the ability to display configurable text banners with various positioning and styling options.

Webpack is used to build the distro bundle and serve the local development environment.

Getting Started

Prerequisites

The plugin requires Kaltura Player to be loaded first.

Installing

First, clone and run yarn to install dependencies:

git clone https://github.com/kaltura/playkit-js-banner-overlay.git
yarn install

Building

Then, build the plugin

yarn run build

Embed the library in your test page

Finally, add the bundle as a script tag in your page, and initialize the player

<!--Kaltura player-->
<script type="text/javascript" src="/PATH/TO/FILE/kaltura-player.js"></script>
<!--Playkit banner-overlay plugin -->
<script type="text/javascript" src="/PATH/TO/FILE/playkit-banner-overlay.js"></script>
<div id="player-placeholder" style="height:360px; width:640px">
  <script type="text/javascript">
    var playerContainer = document.querySelector("#player-placeholder");
    var config = {
     ...
     targetId: 'player-placeholder',
     plugins: {
      banner-overlay: {
        text: string;
        duration?: number | 'unlimited';
        alignment?: BannerAlignment;
        allowWrapping?: boolean; // default: true
        allowClose?: boolean;  // default: false
      }
     },
    };
    var player = KalturaPlayer.setup(config);
    player.loadPlaylist(...);
  </script>
</div>

License

This project is licensed under the AGPL-3.0 License - see the LICENSE file for details

Keywords

@playkit-js/banner-overlay

FAQs

Package last updated on 18 Sep 2025

Did you know?

Socket

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.

Install

Related posts