the-talk
Talking via webrtc
Installation
$ npm install the-talk --save
Usage
'use strict' Component { superprops thisstate = localClient: null remoteClients: {} thisrenderRemoteClient = thisrenderRemoteClient thisrtcClient = null thisrenderLocalClient = thisrenderLocalClient } { void this } async { const rtcClient = // Additional info info: userAgent: navigatoruserAgent who: `user-` { this } { const rid = remoteClient this } await rtcClient await rtcClient thisrtcClient = rtcClient } { const localClient remoteClients = thisstate return <div> <TheSpinStyle/> <TheButtonStyle/> <TheTalkStyle/> <TheTalk ...localClient remoteClients onToggleVideo= thisrtcClient onToggleAudio= thisrtcClient renderRemoteClient=thisrenderRemoteClient renderLocalClient=thisrenderLocalClient /> </div> } { } { return <span>` ()`</span> }
Components
TheTalk
Talking via webrtc
Props
Name | Type | Description | Default |
---|---|---|---|
localClient |
object | Handle video | null |
onVideo |
func | `` | |
remoteClients |
objectOf object | {} |
|
renderLocalClient |
func | () => null |
|
renderRemoteClient |
func | () => null |
|
videoHeight |
union | Height of video | `` |
localVideoHeight |
100 |
||
remoteVideoHeight |
200 |
TheTalkStyle
Style for TheTalk
Props
Name | Type | Description | Default |
---|---|---|---|
options |
object | Style options | {} |
License
This software is released under the MIT License.