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-video
Advanced tools
A react component that handles video properties and methods by prop.
A react component that handles video properties and methods by prop.
Using npm:
$ npm install --save @bsonntag/react-video
Using yarn:
$ yarn add @bsonntag/react-video
This module uses react's createRef
API,
so make sure you have at least version 16.3.0 installed.
import Video from '@bsonntag/react-video';
import React from 'react';
const App = () => (
<Video
play
src={'https://www.sample-videos.com/video/mp4/480/big_buck_bunny_480p_1mb.mp4'}
volume={0.5}
/>
);
The Video
component supports all
video attributes
plus the following props:
play
- A boolean prop that makes the component call video.play()
when true, or video.pause()
when false.srcObject
- Can be used to pass a MediaStream to the video.srcObject
property.volume
- Sets the value of video.volume
. Must be between 0 and 1.Please feel free to submit any issues or pull requests.
MIT
FAQs
A react component that handles video properties and methods by prop.
We found that @bsonntag/react-video 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.