@meisterplayer/plugin-watermark

5.1.3 • Public • Published

Watermark plugin for Meister

This plugin adds a watermark to the video in order to brand the video more.

Config options

iconUrl [String] (required)

This is the url to the watermark that will be placed on the video.

var meisterPlayer = new Meister('#player', {
    Watermark: {
        iconUrl: 'URL_TO_WATERMARK',
    }
});

position [String] (default: 'top-left')

The position of the watermark. Can be anything of the following types:

  • top-left
  • top-right
  • bottom-left
  • bottom-right
var meisterPlayer = new Meister('#player', {
    Watermark: {
        iconUrl: 'URL_TO_WATERMARK',
        position: 'bottom-right',
    }
});

autoHide [Boolean]

Set autoHiding on/off. When autoHiding is used the watermark will slowly fade out (8 seconds)

var meisterPlayer = new Meister('#player', {
    Watermark: {
        iconUrl: 'URL_TO_WATERMARK',
        autoHide : true,
    }
});

style [Object]

This allows you to style the wrapper via javascript. The style propertie maps to HTMLElement.prototype.style so any style property can be used.

var meisterPlayer = new Meister('#player', {
    Watermark: {
        iconUrl: 'URL_TO_WATERMARK',
        style: {
            margin: '2%',
        }
    }
});

Readme

Keywords

Package Sidebar

Install

npm i @meisterplayer/plugin-watermark

Weekly Downloads

6

Version

5.1.3

License

Apache-2.0

Last publish

Collaborators

  • edwinmeijne
  • stefkampen
  • licensetriple
  • thomasvdam
  • i.toby
  • kajb
  • smashingpat
  • rtl-video