
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@paddlejs-mediapipe/camera
Advanced tools
The function of this package is to access the user's device camera, obtain the video stream, and display it on the page in real time.
npm install @paddlejs-mediapipe/camera
import Camera from '@paddlejs-mediapipe/camera';
const option = {
// video width
width?: number,
// video height
height?: number,
// mirror or not
mirror?: boolean,
// canvas DOM
targetCanvas?: HTMLCanvasElement,
// video rendered successfully
onSuccess?: () => void,
// video rendering failed
onError?: NavigatorUserMediaErrorCallback,
// browser does not support the getusermedia API
onNotSupported?: () => void,
// get every frame of video
onFrame?: (canvas: HTMLCanvasElement) => void,
// switch camera error
switchError?: () => void,
// video loadedData
videoLoaded?: () => void
};
const camera = new Camera(video, option);
// video play
camera.start();
// video pause
camera.pause();
// cameras switch
camera.switchCameras();
system | phone browser | Baidu App | qq browser | uc browser | |
---|---|---|---|---|---|
iOS 14 | support | support(14.2+) | support(14.4) | support(14.4) | won't support |
iOS 13 | support | won't support | won't support | won't support | won't support |
iOS 12 | support | won't support | won't support | won't support | won't support |
iOS 11 | support | won't support | won't support | won't support | won't support |
iOS 10 | won't support | won't support | won't support | won't support | won't support |
iOS 9 | won't support | won't support | won't support | won't support | won't support |
iOS 8 | won't support | won't support | won't support | won't support | won't support |
Android 11 | support | support | support | support | support |
Android 10 | support | support | support | support | support |
Android 9 | support | support | support | support | support |
Android 8 | support | support | support | support | support |
Android 7 | support | support | support | support | support |
Android 6 | support | support | won't support | won't support | support |
Android 5 | support | support | won't support | won't support | support |
FAQs
webrtc camera
We found that @paddlejs-mediapipe/camera demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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 how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.