1.0.51 • Published 3 years ago

besmart-screenshare v1.0.51

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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

3 years ago

1.0.50

3 years ago

1.0.49

3 years ago

1.0.48

3 years ago

1.0.47

3 years ago

1.0.46

3 years ago

1.0.45

3 years ago

1.0.44

3 years ago

1.0.43

3 years ago

1.0.42

3 years ago

1.0.41

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.0

3 years ago