diff options
| author | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-11-03 14:38:44 -0500 |
|---|---|---|
| committer | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-11-03 14:38:44 -0500 |
| commit | b2777f92b50f926357ad9b595c7907368b996fbd (patch) | |
| tree | 7a679fc4729264b867c0fb71c8aa61bfbf7e1569 /src/client/views/webcam/DashWebRTCVideo.tsx | |
| parent | d97091421468238d32edf55c240bfb3b021e9e05 (diff) | |
Moved code into init
Diffstat (limited to 'src/client/views/webcam/DashWebRTCVideo.tsx')
| -rw-r--r-- | src/client/views/webcam/DashWebRTCVideo.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/webcam/DashWebRTCVideo.tsx b/src/client/views/webcam/DashWebRTCVideo.tsx index 5bb7cef6f..dcaa87557 100644 --- a/src/client/views/webcam/DashWebRTCVideo.tsx +++ b/src/client/views/webcam/DashWebRTCVideo.tsx @@ -8,7 +8,7 @@ import { InkingControl } from "../InkingControl"; import "../../views/nodes/WebBox.scss"; import "./DashWebRTC.scss"; import adapter from 'webrtc-adapter'; -//import { DashWebRTC } from "./DashWebRTC"; +import { DashWebRTC } from "./DashWebRTC"; @@ -37,7 +37,8 @@ export class DashWebRTCVideo extends React.Component<CollectionFreeFormDocumentV private hangupButton: HTMLButtonElement | undefined; componentDidMount() { - //DashWebRTC.setVideoObjects(this.localVideoEl!, this.peerVideoEl!); + DashWebRTC.setVideoObjects(this.localVideoEl!, this.peerVideoEl!); + DashWebRTC.init(); } |
