
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@popul-ar/user-media
Advanced tools
A WebComponent wrapper for the getUserMedia
API.
Get webcam video and microphone audio streams with a simple html tag!
Load the component from unpkg with a script tag:
<script type="module" src="https://unpkg.com/@popul-ar/user-media@latest"></script>
Install the module: npm install --save @popul-ar/user-media
Import the module: import '@popul-ar/user-media'
Using the component without any attributes will give you a muted video element with default webcam settings.
<user-media></user-media>
You can also specify other attributes depending on your needs.
<user-media width="720" height="1280" controls></user-media>
<user-media aspect-ratio="1.333" video-facing-mode="user"></user-media>
See the <user-media>
component API documentation for more details about attributes, events, and methods.
Basic webcam example: device selector with a few controls
Simplest usage: just the tag
Audio controls: audio streams and properties
Advanced properties: zoom, contrast, exposure mode, etc...
npm install
: installs dependencies
npm start
: starts a dev server and runs a watcher for compiling the component
npm run build
: builds the component in production mode and generates docs
FAQs
Web component wrapper for the getUserMedia API
We found that @popul-ar/user-media 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.