Global

Methods

mobileUi(optionsopt)

A video.js plugin.

Adds a monile UI for player control, and fullscreen orientation control

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

Plugin options.

Properties
Name Type Attributes Default Description
forceForTesting boolean <optional>
false

Enables the display regardless of user agent, for testing purposes

fullscreen Object <optional>
{}

Fullscreen options.

Properties
Name Type Attributes Default Description
enterOnRotate boolean <optional>
true

Whether to go fullscreen when rotating to landscape

exitOnRotate boolean <optional>
true

Whether to leave fullscreen when rotating to portrait (if not locked)

lockOnRotate boolean <optional>
true

Whether to lock orientation when rotating to landscape Unlocked when exiting fullscreen or on 'ended'

iOS boolean <optional>
false

Whether to disable iOS's native fullscreen so controls can work

touchControls Object <optional>
{}

Touch UI options.

Properties
Name Type Attributes Default Description
seekSeconds int <optional>
10

Number of seconds to seek on double-tap

tapTimeout int <optional>
300

Interval in ms to be considered a doubletap

disableOnEnd boolean <optional>
false

Whether to disable when the video ends (e.g., if there is an endscreen) Never shows if the endscreen plugin is present

Source:

onPlayerReady(player, optionsopt)

Add UI and event listeners

Parameters:
Name Type Attributes Default Description
player Player

A Video.js player object.

options Object <optional>
{}

A plain object containing options for the plugin.

Source: