reactjs-media
Version:
Awesome Multimedia Components for React
56 lines (35 loc) • 1.59 kB
Markdown
Interactive media in React. This library is a collection of media components that can be used to display media on the web.
Try it out on [CodeSandbox](https://codesandbox.io/p/sandbox/reactjs-media-c5x795)
It includes currently only has a video and audio component.
Available components:
- Video
- Audio
To install go to your terminal and run this script
```bash
$ npm install reactjs-media
$ yarn add reactjs-media
```
In here we shall show a small demo on how to setup a simple video component. We shall create the default component.
```jsx
import React from 'react';
import { Video } from 'reactjs-media';
const App = () => {
return (
<div>
<Video
src='https://www.example.com/myvideo.mp4'
poster='/poster.png'
/>
</div>
)
}
```
If you want to learn more, Checkout the offical [Documentation](https://open.cranom.tech/reactjs-media/intro "Documentation")
___
The source code can be found on [Github](https://github.com/jim-junior/reactjs-media).