Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@globocom/clappr-detach-plugin
Advanced tools
Note: this plugin was previously called clappr-detach-plugin
, but has changed to @globocom/clappr-detach-plugin
.
A Clappr plugin to detach the video.
This project is a fork from https://github.com/team-767/clappr-detach-plugin. We took a different approach that was done in that project.
npm install -S @globocom/clappr-detach-plugin
To init the plugin you have to pass it the Clappr object. See bellow the compatibility between this plugin and Clappr versions.
import Clappr from 'clappr'
import initClapprDetachPlugin from '@globocom/clappr-detach-plugin'
const detachPlugin = initClapprDetachPlugin(Clappr)
We did it this way so the plugin will receive the dependency and doesn't have to install it.
Full example:
import Clappr from 'clappr'
import initClapprDetachPlugin from '@globocom/clappr-detach-plugin'
const player = new Clappr.Player({
source: 'http://www.sample-videos.com/video/mp4/480/big_buck_bunny_480p_5mb.mp4',
plugins: {
'core': [initClapprDetachPlugin(Clappr)]
}
})
This plugin exposes the public methods attach
and detach
that you can call with:
player.getPlugin('detach').detach()
player.getPlugin('detach').attach()
Or using the player configure
method:
player.configure({ isDetached: true })
player.configure({ isDetached: false })
import Clappr from 'clappr'
import initClapprDetachPlugin from '@globocom/clappr-detach-plugin'
const player = new Clappr.Player({
source: 'http://www.sample-videos.com/video/mp4/480/big_buck_bunny_480p_5mb.mp4',
plugins: {
'core': [initClapprDetachPlugin(Clappr)]
},
// these are the default values
detachOptions: {
dragEnabled: true,
height: 180,
isDetached: false,
onAttach: () => { },
onDetach: () => { }
opacity: 1,
orientation: 'bottom-right',
position: {
bottom: 10,
right: 10,
},
width: 320,
}
})
Property | Type | Description | valid values |
---|---|---|---|
dragEnabled | bool | wheter drag n drop of detached player should be enabled | - |
height | number | player height on detach | - |
isDetached | bool | whether you want to start the player detached | - |
onAttach | function | callback called when player attach on original place | - |
onDetach | function | callback called when player detach from original place | - |
orientation | string | Where the player will appear on detach | 'bottom-left', 'top-left', 'bottom-right', 'top-right' |
position | object | Force the position where player will appear on detach | {"top": number, "right": number, "bottom": number, "left": number} |
width | number | player width on detach | - |
This table doesn't mean that other versions won't work together.
It does means that we are sure that these versions work together.
clappr-detach-plugin | clappr |
---|---|
0.4.0 | 0.2.73 |
0.2.0 | 0.2.73 |
0.1.0 | 0.2.73 |
0.4.7
clappr-detach-plugin
to @globocom/clappr-detach-plugin
FAQs
A Clappr plugin to detach the video
The npm package @globocom/clappr-detach-plugin receives a total of 0 weekly downloads. As such, @globocom/clappr-detach-plugin popularity was classified as not popular.
We found that @globocom/clappr-detach-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.