
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-simple-video-player
Advanced tools
A simple, material design video player component for React.

yarn add react-simple-video-player or npm install --save react-simple-video-player
import VideoPlayer from 'react-simple-video-player';
const App = () => (
<VideoPlayer url="/video.mp4" />
);
import VideoPlayer from 'react-simple-video-player';
const App = () => (
<VideoPlayer
url="/video.mp4"
poster="/myPoster.png"
width={400}
height={300}
autoplay
/>
);
* = Required
| Prop | Description | default |
|---|---|---|
url* | Url of the video file to play | |
poster | Url of the image to use as poster for the video | |
width | Width of the video player | 640 |
height | Height of the video player | 360 |
autosize | If set to true, the video player will become 100% of the parent width and 100% of the parent height (if the parent does not have a height, the video player will automatically become the right height). autosize overrides the given width and height | false |
autoplay | If set to true, the video will automatically play | false |
loop | If set to true, the video will loop | false |
aspectRatio | The aspect ratio of the video (see explanation below). | 16:9 |
aspectRatio propThe aspectRatio prop can be used to automatically give the video player the correct height for the given width (or the correct width for the given height).
For example, in the following scenario:
<VideoPlayer url="/video.mp4" width={400} aspectRatio="4:3" />
the video player would automatically become 300px high.
In the following scenario:
<VideoPlayer url="/video.mp4" height={300} aspectRatio="4:3" />
the video player would automatically become 400px wide.
In the following scenario:
<VideoPlayer url="/video.mp4" aspectRatio="4:3" />
the video player would automatically become 480px high (since the width defaults to 640px).
Notice that when an invalid aspectRatio is given, it'll be ignored.
react-simple-video-player is built on top of react-player.
Please use react-player when you need customisability.
FAQs
A simple, material design video player component for React
The npm package react-simple-video-player receives a total of 6 weekly downloads. As such, react-simple-video-player popularity was classified as not popular.
We found that react-simple-video-player 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.