Gathering detailed insights and metrics for videojs-mobile-ui
Gathering detailed insights and metrics for videojs-mobile-ui
Gathering detailed insights and metrics for videojs-mobile-ui
Gathering detailed insights and metrics for videojs-mobile-ui
npm install videojs-mobile-ui
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (65.02%)
HTML (22.72%)
CSS (12.06%)
Shell (0.21%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
107 Stars
131 Commits
26 Forks
7 Watchers
14 Branches
3 Contributors
Updated on Apr 27, 2025
Latest Version
1.1.1
Package Id
videojs-mobile-ui@1.1.1
Unpacked Size
70.09 kB
Size
13.79 kB
File Count
22
NPM Version
8.19.4
Node Version
14.21.3
Published on
Sep 22, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
Mobile UI for Video.js.
Touch controls:
Fullscreen control:
1npm install video.js 2npm install videojs-mobile-ui
Version 1.x requires video.js 8.x as a peer dependency. Lowever video.js versions are not supported. 0.7.0 supports video.js 7.x. To install the latest version that works with Video.js 7, use the latest7
tag:
1npm install videojs-mobile-ui@latest7
1{ 2 fullscreen: { 3 enterOnRotate: true, 4 exitOnRotate: true, 5 lockOnRotate: true, 6 lockToLandscapeOnEnter: false, 7 disabled: false 8 }, 9 touchControls: { 10 seekSeconds: 10, 11 tapTimeout: 300, 12 disableOnEnd: false, 13 disabled: false, 14 } 15};
boolean
Whether to go fullscreen when rotating to landscapeboolean
Whether to leave fullscreen when rotating to portrait (if not locked)boolean
Whether to lock to fullscreen when rotating to landscapeboolean
Whether to lock to landscape when entering fullscreen (works even when device rotation is disabled/non-functional)boolean
If true no fullscreen handling except the deprecated iOS fullwindow hackint
Seconds to seek when double-tappingint
Milliseconds to consider a double-tapboolean
Whether 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 initialisesboolean
If true no touch controls are added.To include videojs-mobile-ui on your website or web application, use any of the following methods.
<script>
TagThis 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.
1<link rel="stylesheet" href="//path/to/videojs-mobile-ui.css"> 2<script src="//path/to/video.min.js"></script> 3<script src="//path/to/videojs-mobile-ui.min.js"></script> 4<script> 5 var player = videojs('my-video'); 6 7 player.mobileUi(); 8</script>
The release versions will be available on jdselivr, unpkg etc.
When using with Browserify, install videojs-mobile-ui via npm and require
the plugin as you would any other module.
1var videojs = require('video.js'); 2 3// The actual plugin function is exported by this module, but it is also 4// attached to the `Player.prototype`; so, there is no need to assign it 5// to a variable. 6require('videojs-mobile-ui'); 7 8var player = videojs('my-video'); 9 10player.mobileUi();
Also include the CSS.
When using with RequireJS (or another AMD library), get the script in whatever way you prefer and require
the plugin as you normally would:
1require(['video.js', 'videojs-mobile-ui'], function(videojs) { 2 var player = videojs('my-video'); 3 4 player.mobileUi(); 5});
Also include the CSS.
To import into React etc import both the package and the script
1import videojs from 'video.js' 2import 'videojs-mobile-ui/dist/videojs-mobile-ui.css'; 3import 'videojs-mobile-ui';
MIT. Copyright (c) mister-ben <git@misterben.me>
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/6 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
22 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More