First include playkit-plugin-example.js
after kaltura-player script in your web page.
<script src="https://raw.githack.com/kaltura/kaltura-player-js/master/dist/kaltura-ovp-player.js"></script>
<script src="./playkit-plugin-example.js"></script>
Add the plugin-example to the player config under the plugins section.
const config = {
targetId: 'player-placeholder',
provider: {
partnerId: 1234567,
},
plugins: {
pluginExample: {},
}
};
const player = KalturaPlayer.setup(config);
You can see the Example plugin full configuration options here
You can find configuration example here
You can find Full working example here