1.0.51 • Published 1 year ago

besmart-screenshare v1.0.51

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year 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

1 year ago

1.0.50

1 year ago

1.0.49

1 year ago

1.0.48

1 year ago

1.0.47

1 year ago

1.0.46

1 year ago

1.0.45

1 year ago

1.0.44

1 year ago

1.0.43

1 year ago

1.0.42

1 year ago

1.0.41

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.0

1 year ago