reactjs-media
v3.1.3
Published
Awesome Multimedia Components for React
Downloads
1,294
Maintainers
Readme
Reactjs Media
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
It includes currently only has a video and audio component.
Available components:
- Video
- Audio
Installation
To install go to your terminal and run this script
# npm
$ npm install reactjs-media
# yarn
$ yarn add reactjs-media
Setup
In here we shall show a small demo on how to setup a simple video component. We shall create the default component.
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
The source code can be found on Github.