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.
recorder-capture
Advanced tools
Using this library, you can record a screen with audio, stream a user cam, and take a screenshot of a webpage.
Using this library, you can record a screen with audio, stream a user cam, and take a screenshot of a webpage.
npm i screencastify
Method | Description |
---|---|
startRecording() | To start screen recording and get screen stream object. |
stopRecording() | To end screen recording and get base64 source. |
takeScreenshot() | To capture the screenshot and get base64 source. |
streamUserCam() | To stream user cam and get the stream object |
takeScreenshot()
method is used for taking the screenshot
import { takeScreenshot } from "screencastify";
const handleScreenshot = () => {
const screenshot = takeScreenshot();
// in this variable you get the screenshot captured
};
<button onClick={() => handleScreenshot()}>Take ScreenShot</button>;
startRecording
method is used for start the screen recording and startRecording
method is used for stop the screen recording and it gives the video in base64 format.
import { startRecording, stopRecording } from "screencastify";
const handleStopRecording = () => {
const recording = stopRecording();
// in this variable you get the screen recoding
};
<button onClick={() => startRecording()}>start recording</button>;
streamUserCam()
method is used for stream the user cam
import React, { useEffect, useRef } from "react";
import { streamUserCam } from "recorder-capture";
const UserCam = () => {
let videoRef = useRef(null);
const getUserVideo = async () => {
const stream = await streamUserCam();
//in this variable you get the stream object
let video = videoRef.current;
video.srcObject = stream;
video.play();
};
useEffect(() => {
getUserVideo();
}, [videoRef]);
return (
<div>
{/* In this video tag you get the the stream of user cam */}
<video ref={videoRef}></video>
</div>
);
};
export default UserCam;
Feel free to submit a PR on github if you found a bug or if you want to enhance it further.
Thanks!. Happy Recording!
FAQs
Using this library, you can record a screen with audio, stream a user cam, and take a screenshot of a webpage.
We found that recorder-capture 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.
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.