Class: Logo

Logo(player, options)

A videojs plugin to display a logo image on the player.

Constructor

Create a Logo plugin instance.
Parameters:
Name Type Description
player Player A Video.js Player instance.
options Object An optional options object.
Properties
Name Type Attributes Default Description
image string The URL to the logo image.
url string <optional>
A url to be linked to from the logo. If the user clicks the logo the link will open in a new window.
position string <optional>
"top-right" The location to place the logo (top-left, top-right, bottom-left, or bottom-right).
offsetH number <optional>
0 Horizontal offset (px) from the edge of the video.
offsetV number <optional>
0 Vertical offset (px) from the edge of the video.
width number <optional>
The width of the logo image (px). If not specified, it will be the width of the original image.
height number <optional>
The height of the logo image (px). If not specified, it will be the height of the original image.
padding number <optional>
5 Padding around the logo image (px).
fadeDelay Number <optional>
<nullable>
5000 Time until fade-out begins (msec). If `null` is specified, automatic fade-out is not performed.
hideOnReady boolean <optional>
false Do not show the logo image when the player is ready.
opacity number <optional>
1 The opacity of the image. If not specified it will default to 1.
Source:

Methods

hide()

Hide logo image.
Source:

show()

Show the logo image.
Source: