Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
paella-webgl-plugins
Advanced tools
A set of canvas plugins to show videos using a WebGL canvas.
## Usage
Step 1: Import the plugin context and add it to the Paella Player initialization parameters:
Usin plugin context API:
...
import getWebGLPluginsContext from 'paella-webgl-plugins';
let paella = new Paella('player-container', {
customPluginContext: [
getWebGLPluginsContext()
]
});
...
Using explicit plugin import API (paella-basic-plugins >= 1.41):
...
import {
webglPlugins, // All plugins
} from 'paella-webgl-plugins';
let paella = new Paella('player-container', {
plugins: [
...webglPlugins
]
});
...
From version 1.42.1, 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.video360Canvas": {
"enabled": true,
...
},
... other plugin settings
}
}
It is a canvas plugin that allows you to display 360-degree videos recorded in equirectangular format. Mouse or touch actions on the canvas are used to zoom and scroll the video, therefore with this canvas the play/pause by clicking on the video canvas is disabled.
This video canvas works with those streams that have video360
as canvas identifier in the video manifest.
data.json:
{
...
"streams": [
{
"sources": {...},
"content": "presenter",
"canvas":["video360"]
}
]
}
config.json:
{
"plugins": {
"es.upv.paella.video360Canvas": {
"enabled": true,
"maxZoom": 2,
"minZoom": 0.5,
"speedX": 0.4,
"speedY": 0.4
}
}
}
Exported as Video360CanvasPlugin
.
¡
FAQs
A plugin to zoom videos for Paella Player
The npm package paella-webgl-plugins receives a total of 90 weekly downloads. As such, paella-webgl-plugins popularity was classified as not popular.
We found that paella-webgl-plugins demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.