Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
clappr-capture-plugin
Advanced tools
Readme
A plugin for clappr which adds a button to capture a base64 jpeg image of the current frame. Emits an event with the base64 data which you can use elsewhere in your application (sending to a remote endpoint, etc)
Add both Clappr and the capture plugin scripts to your HTML:
<head>
<script type="text/javascript" src="http://cdn.clappr.io/latest/clappr.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/clappr-capture-plugin@latest/dist/clappr-capture-plugin.js"></script>
</head>
You can also find the project on npm: https://www.npmjs.com/package/clappr-capture-plugin
Then just add ClapprCapturePlugin
into the list of plugins of your player instance.
var player = new Clappr.Player({
source: "http://your.video/here.mp4",
plugins: [ClapprCapturePlugin]
});
That's it, a button will be shown on the media control to enable capture. This only works with playback tech's that use a <video>
tag to display video
See the demo for how to capture the event.
To run the demo start a web server with the root directory being the root of this repo, and then browse to the "index.html" file in the "demo" folder. The demo will open a new window with the captured image after the button has been clicked
Install dependencies:
npm install
Build:
npm run build
Minified version:
npm run release
Credit to Tom Jenkinson (@tjenkinson) for his PIP plugin, which this plugin used as a base template.
FAQs
A plugin for clappr which adds a button to take an image capture of the current video screen
The npm package clappr-capture-plugin receives a total of 3 weekly downloads. As such, clappr-capture-plugin popularity was classified as not popular.
We found that clappr-capture-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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.