Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@bsonntag/react-user-media
Advanced tools
A react component that wraps
getUserMedia
.
Using npm:
$ npm install --save @bsonntag/react-user-media
Using yarn:
$ yarn add @bsonntag/react-user-media
This module uses react's createContext
API,
so make sure you have at least version 16.3.0 installed.
import UserMedia from '@bsonntag/react-user-media';
import React from 'react';
const constraints = { video: true };
const App = () => (
<UserMedia constraints={constraints}>
{stream => (
<video
autoPlay
src={URL.createObjectURL(stream)}
/>
)}
</UserMedia>
);
children
- A function that receives the MediaStream
and renders something.constraints
- A MediaStreamConstraints
.onError
- A function that is called when getUserMedia
throws.onMediaStream
- A function that receives the MediaStream
.placeholder
- An element that is rendered while getUserMedia
is being called.renderError
- A function that receives the error thrown by getUserMedia
and renders something.Please feel free to submit any issues or pull requests.
MIT
FAQs
A react component that wraps getUserMedia.
The npm package @bsonntag/react-user-media receives a total of 0 weekly downloads. As such, @bsonntag/react-user-media popularity was classified as not popular.
We found that @bsonntag/react-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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.