Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/akpoflash/media-recorder
- Owner: AkpoFlash
- License: mit
- Created: 2022-02-03T10:24:12.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-07T19:28:04.000Z (about 2 years ago)
- Last Synced: 2024-12-07T01:46:12.658Z (about 1 month ago)
- Topics: react, stream, streaming, video
- Language: TypeScript
- Homepage:
- Size: 194 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 && }
>
);
}
```