Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/akpoflash/media-recorder

🎥 Wrapper for recording video through MediaRecorderAPI
https://github.com/akpoflash/media-recorder

react stream streaming video

Last synced: about 1 month ago
JSON representation

🎥 Wrapper for recording video through MediaRecorderAPI

Awesome Lists containing this project

README

        

# media-recorder

# How to use
```jsx
import {useMediaRecorder} from '@akpoflash/media-recorder'

function App(){
const mediaRecorder = useMediaRecorder();
const video = useRef();

useEffect(() => {
mediaRecorder.init().then(stream => {
video.current.srcObject = stream
});
},[]);

return (
<>
{/* real time streaming */}

{/* recordered video */}
{mediaRecorder.blob && }









>
);
}
```