
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@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
The npm package @paddlejs-mediapipe/camera receives a total of 6 weekly downloads. As such, @paddlejs-mediapipe/camera popularity was classified as not popular.
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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.