Mobile UI for Video.js.
- Double-tap the left side of the player to rewind ten seconds
- Double-tap the right side of the player to fast-forward ten seconds
- Single-tap the screen to show a play/pause toggle
- Rotate to landscape to enter Fullscreen
- Lock to fullscreen on rotate
Table of Contents
- Plugin Options
npm install --save videojs-mobile-ui
fullscreen:enterOnRotate: truelockOnRotate: truetouchControls:seekSeconds: 10tapTimeout: 300disableOnEnd: false;
booleanWhether to go fullscreen when rotating to landscape
booleanWhether to lock to fullscreen when rotating to landscape
booleanWhether to use fake fullscreen on iOS (needed for controls to work)
intSeconds to seek when double-tapping
intMilliseconds to consider a double-tap
booleanWhether to disable touch controls when the video has ended, e.g. if an endscreen is used. Automatically disables if the endscreen plugin is present when this plugin initialises
To include videojs-mobile-ui on your website or web application, use any of the following methods.
This is the simplest case. Get the script in whatever way you prefer and include the plugin after you include video.js, so that the
videojs global is available.
When using with Browserify, install videojs-mobile-ui via npm and
require the plugin as you would any other module.
var videojs = ;// The actual plugin function is exported by this module, but it is also// attached to the `Player.prototype`; so, there is no need to assign it// to a variable.;var player = ;player;
When using with RequireJS (or another AMD library), get the script in whatever way you prefer and
require the plugin as you normally would:
MIT. Copyright (c) mister-ben <firstname.lastname@example.org>