1.0.51 • Published 2 years ago
besmart-screenshare v1.0.51
What is this?
many to many video streaming
Instolation
npm i react.screenshare --save
inital
import { Screenshare } from "react.screenshare";
React
<Screenshare
roomId='roomid_123'
videoContainer= {document.getElementById("container")}
videoControls={['full-screen'] }
/>
- Screenshare component
const connection = new Screenshare({
roomId, videoContainer, videoControls
});
create any button and take the id
useEffect(()=>{
connection.openRoom()
},[connection])
JavaScript
var connectin = new Screenshare({
roomId: 'roomid_123',
videoContainer: document.getElementById('container'),
videoControls: [
'full-screen'
]
});
connectin.open();
Options
- roomId - any unique id (typeof string)
- videoContainer - take the HTML element | document.getElementById('elementId')
- videoControls - 'mute-audio','mute-video','full-screen', 'take-snapshot','record-audio','record-video', 'volume-slider','stop'
1.0.51
2 years ago
1.0.50
2 years ago
1.0.49
2 years ago
1.0.48
2 years ago
1.0.47
2 years ago
1.0.46
2 years ago
1.0.45
2 years ago
1.0.44
2 years ago
1.0.43
2 years ago
1.0.42
2 years ago
1.0.41
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.0
2 years ago