Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@theonlyducks/videojs-zoom
Advanced tools
Simple plugin to zoom in video.js player
npm istall video.js
yarn add video.js
npm install @theonlyducks/videojs-zoom@latest
yarn add @theonlyducks/videojs-zoom@latest
<link rel="stylesheet" type="text/css" href="/dist/videojs-zoom.css">
<script src="/dist/videojs-zoom.js"></script>
import '@theonlyducks/videojs-zoom/styles';
import '@theonlyducks/videojs-zoom';
const video = videojs('my-video');
const zoomPlugin = video.zoomPlugin();
zoomPlugin.listen('change', data => {
console.log(data);
});
Zoom function
Number
const zoomPlugin = video.zoomPlugin();
zoomPlugin.zoom(2);
Rotate function
Number
in degconst zoomPlugin = video.zoomPlugin();
zoomPlugin.rotate(180);
Rotate function
Number
Number
const zoomPlugin = video.zoomPlugin();
zoomPlugin.move(0, 0);
Open and close modal function
const zoomPlugin = video.zoomPlugin();
zoomPlugin.toggle();
Flip video image
String
use + or - for flip imageconst zoomPlugin = video.zoomPlugin();
zoomPlugin.flip("-");
Enable the plugin if it is disabled
const zoomPlugin = video.zoomPlugin();
zoomPlugin.enablePlugin();
Disables all visual features of the plugin if enabled
const zoomPlugin = video.zoomPlugin();
zoomPlugin.disablePlugin();
Example:
const zoomPlugin = video.zoomPlugin({
showZoom: true,
showMove: true,
showRotate: true,
gestureHandler: false
});
showZoom
show/hide +- zoom buttons. default true
showMove
show/hide up, left, right, reset and down buttons. default true
showRotate
show/hide rotate and flip buttons. default true
gestureHandler
enable gesture zoom drag and drop, wheel. default false
Listen events of the zoom plugin
String
'change'
when click in buttons modal'click'
when modal is opened or closedFunction
const zoomPlugin = video.zoomPlugin();
zoomPlugin.listen('click', () => {
console.log('click');
});
Install
yarn
Start server listening https://localhost:3000
yarn start
FAQs
Simple plugin to zoom in video.js player
The npm package @theonlyducks/videojs-zoom receives a total of 231 weekly downloads. As such, @theonlyducks/videojs-zoom popularity was classified as not popular.
We found that @theonlyducks/videojs-zoom demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.