
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
paella-zoom-plugin
Advanced tools
A plugin to zoom videos for Paella Player.
Step 1: Import the plugin context and add it to the Paella Player initialization parameters:
Usin plugin context API:
...
import getZoomPluginContext from 'paella-zoom-plugin';
let paella = new Paella('player-container', {
customPluginContext: [
getZoomPluginContext()
]
});
...
Using explicit plugin import API (paella-zoom-plugin >= 1.41):
...
import {
zoomPlugins, // All plugins
ZoomCanvasPlugin // Independent plugin
} from 'paella-zoom-plugin';
let paella = new Paella('player-container', {
plugins: [
...zoomPlugins, // All plugins
{ // One plugin
plugin: ZoomCanvasPlugin,
config: {
enabled: true
}
}
]
});
...
From version 1.41.3, you can also use the generic plugin array name to import all the plugins:
import { allPlugins as webglPlugins } from 'paella-webgl-plugins'
...
All the plugin libraries exports the allPlugins
array. This is done in order to have a method to import all plugins using always the same name for all libraries.
Step 2: Configure the plugins you want to use in the paella player configuration.
{
"plugins": {
...
"es.upv.paella.zoomMenuButtonPlugin": {
"enabled": true,
...
}
}
... other plugin settings
}
}
This set of plugins consists of four different plugins:
data.json:
{
...
"streams": [
{
"sources": {
...
},
"content": "presenter",
"canvas": ["video"] << "video" is the default canvas
}
]
}
Note that, as "video" is the default canvas type, it's not mandatory that the stream is configured with the canvas
attribute to use the zoom canvas.
This is a canvas plugin, which will work on videos whose canvas is set to "video" in the video manifest. Note that for the zoom to work, you must disable the default canvas in the configuration file, or set a higher priority:
{
"plugins": {
...
"es.upv.paella.videoCanvas": {
"enabled": false, < deactivate default canvas
"order": 1 < or set lower priority
},
"es.upv.paella.zoomPlugin": {
"enabled": true,
"order": 0,
"maxZoom": 800,
"showButtons": true
},
...
}
}
Zooming works with the mouse scroll wheel by holding down the alt
key. It is also possible to show zoom in and zoom out buttons on the video canvas by activating the showButtons
option.
Exported as ZoomCanvasPlugin
.
Displays the options to zoom in or zoom out the video using a drop-down menu. This plugin works on a specific target, which matches the content
attribute of the video manifest:
data.json:
{
...
"streams": [
{
"sources": {
...
},
"content": "presenter", << content target to zoom
"canvas": ["video"]
}
]
}
config.json:
{
"plugins": {
"es.upv.paella.zoomMenuButtonPlugin": {
"enabled": true,
"parentContainer": "playbackBar",
"side": right,
"target": "presenter" << content target to zoom
}
}
}
Exported as ZoomMenuButtonPlugin
.
Icon customization data:
es.upv.paella.zoomMenuButtonPlugin
zoomInIcon
zoomOutIcon
These are two button plugins that allow you to zoom in and zoom out the video independently, instead of being grouped in a menu as with the zoomMenuPlugin
plugin.
config.json:
{
"plugins": {
"es.upv.paella.zoomInButtonPlugin": {
"enabled": true,
"parentContainer": "videoContainer",
"side": "right",
"target": "presenter"
},
"es.upv.paella.zoomOutButtonPlugin": {
"enabled": true,
"parentContainer": "videoContainer",
"side": "right",
"target": "presenter"
}
}
}
Exported as ZoomInButtonPlugin
and ZoomOutButtonPlugin
.
Icon customization data:
Plugin identifier: es.upv.paella.zoomInButtonPlugin
Icon names:
zoomInIcon
Plugin identifier: es.upv.paella.zoomOutButtonPlugin
Icon names:
zoomOutIcon
These plugins are equivalent to the two previous plugins (zoomOutButtonPlugin
and zoomInButtonPlugin
), but are intended to be included in the video canvas.
config.json:
{
"plugins": {
"es.upv.paella.canvasZoomInButtonPlugin": {
"enabled": true,
"side": "right",
"content": ["presenter"]
},
"es.upv.paella.canvasZoomOutButtonPlugin": {
"enabled": true,
"side": "right",
"content": ["presenter"]
}
}
}
Exported as CanvasZoomInButtonPlugin
and CanvasZoomOutButtonPlugin
.
Icon customization data:
Plugin identifier: es.upv.paella.canvasZoomInButtonPlugin
Icon names:
zoomInIcon
Plugin identifier: es.upv.paella.canvasZoomOutButtonPlugin
Icon names:
zoomOutIcon
FAQs
A plugin to zoom videos for Paella Player
The npm package paella-zoom-plugin receives a total of 404 weekly downloads. As such, paella-zoom-plugin popularity was classified as not popular.
We found that paella-zoom-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.