Global

Methods

offset(optionsopt)

A video.js plugin.

In the plugin function, the value of this is a video.js Player instance. You cannot rely on the player being in a "ready" state here, depending on how the plugin is invoked. This may or may not be important to you; if not, remove the wait for "ready"!

Parameters:
Name Type Attributes Default Description
options Object <optional>
{}

An object of options left to the plugin author to define.

Source:

onPlayerReady(player, optionsopt)

Function to invoke when the player is ready.

This is a great place for your plugin to initialize itself. When this function is called, the player will have its DOM and child components in place.

Parameters:
Name Type Attributes Default Description
player Player

A Video.js player.

options Object <optional>
{}

An object of options left to the plugin author to define.

Source:

onPlayerTimeUpdate()

Checks whether the clip should be ended.

Source: