1.0.3 • Published 5 years ago

videojs-logobrand v1.0.3

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

videojs-logobrand

Add a custom branding logo inside the video.js player with options to control image size, opacity, position and visibility. Perfect for branding the media source.

Compatible to video.js v6.x.x and v7.x.x

Install logobrand

Easiest way to install is through npm

npm install videojs-logobrand --save

Include the css inside the of your index.html

<link href="path/to/videojs.logobrand.css" rel="stylesheet">

and the javascript inside the

<script src="path/to/videojs.logobrand.js"></script>

You can follow the example to understand how it works.

Initialize logobrand

var player = videojs('video');
player.logobrand({
	image: 'https://www.videojs.com/img/logo.png', // image to use
	destination: 'https://www.videojs.com/', // destination when clicked
	autoHide: false, // default is true
	width: '170px', // default is 'auto'
	height: 'auto', // default is 'auto'
	opacity: 0.7, // default is 1.0
	position: 'absolute', // default is 'static'
	top: '20px',
	right: '30px'
});

Feel free to fork and make any changes you want & don't hesitate to do a pull request.

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago