diff options
| author | andrewdkim <adkim414@gmail.com> | 2019-10-01 18:14:04 -0400 |
|---|---|---|
| committer | andrewdkim <adkim414@gmail.com> | 2019-10-01 18:14:04 -0400 |
| commit | 45b9f489033cd323614463ca9c36f41900bf1965 (patch) | |
| tree | fee7a1106be11740758865d2fe0480ab20cc6698 /src/client/views/webcam | |
| parent | e3ac007e51b00065b214dc638c957e3cf86b48ee (diff) | |
trials 2
Diffstat (limited to 'src/client/views/webcam')
| -rw-r--r-- | src/client/views/webcam/DashWebRTC.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/client/views/webcam/DashWebRTC.tsx b/src/client/views/webcam/DashWebRTC.tsx index c04a6d739..203a9df35 100644 --- a/src/client/views/webcam/DashWebRTC.tsx +++ b/src/client/views/webcam/DashWebRTC.tsx @@ -6,6 +6,8 @@ import { observable } from "mobx"; import { DocumentDecorations } from "../DocumentDecorations"; import { InkingControl } from "../InkingControl"; import "../../views/nodes/WebBox.scss"; +import adapter from 'webrtc-adapter'; + @@ -63,7 +65,11 @@ export class DashWebRTC extends React.Component<CollectionFreeFormDocumentViewPr render() { let content = <div className="webcam-cont" style={{ width: "100%", height: "100%" }} onWheel={this.onPostWheel} onPointerDown={this.onPostPointer} onPointerMove={this.onPostPointer} onPointerUp={this.onPostPointer}> - <video autoPlay playsInline ref={(e) => this.videoEl = e!}></video> + <video id="localVideo" autoPlay playsInline ref={(e) => this.videoEl = e!}></video> + <video id="remoteVideo" autoPlay playsInline></video> + <button id="startButton">Start</button> + <button id="callButton">Call</button> + <button id="hangupButton">Hang Up</button> </div>; let frozen = !this.props.isSelected() || DocumentDecorations.Instance.Interacting; @@ -77,7 +83,6 @@ export class DashWebRTC extends React.Component<CollectionFreeFormDocumentViewPr </div> {!frozen ? (null) : <div className="webBox-overlay" onWheel={this.onPreWheel} onPointerDown={this.onPrePointer} onPointerMove={this.onPrePointer} onPointerUp={this.onPrePointer} />} </>); - ); } |
