
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
react-video-component
Advanced tools
npm install
npm run dev
import ReactVideoComponent from 'react-video-component';
This repo should not be used in production.
The component can have every listener the origin video tag has.
For example <video sources={[url..]} metadataloaded={this._onLoaded.bind(this)}/> calls the function _onLoaded, with the event as argument.
The video is so accessible through event.target.
A list of events can be found here.
Props:
| Property | Type | Default | Description |
|---|---|---|---|
| sources | Array | [] | Defines sources for the video. Must be an array of objects or strings, representing the url of the video. If object is given, it must have `src` key representing the url. |
| style | Object | {} | Style object that will apply to video tag element. |
| className | String | "" | Name of the class that will apply to video tag element. |
| attributes | Object | {} | Standard props of the video element ( e.g. "loop", "controls" ). |
| controls | Bool | true | Show or hide controls. |
| autohide | Bool | true | Automatically hide controls and overlay ( if "fixedoverlay" set to false ) when playing. |
| autohidecursor | Bool | true | Automatically hide cursor when playing. |
| overlay | Bool | true | Show or hide overlay. |
| fixedoverlay | Bool | false | Disable autohide for overlay. |
| shortcuts | Bool | true | Enable or disable keyboard shortcuts. |
| tabIndex | String | "1" | Tab index of the wrapper element. |
| width | String | "auto" | Width of the video element. |
| height | String | "100%" | Height of the video element. |
FAQs
Simple video component for react
We found that react-video-component 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.