aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/webcam/DashWebRTCVideo.tsx
diff options
context:
space:
mode:
authorMohammad Amoush <mohammad_amoush@brown.edu>2019-11-03 14:38:44 -0500
committerMohammad Amoush <mohammad_amoush@brown.edu>2019-11-03 14:38:44 -0500
commitb2777f92b50f926357ad9b595c7907368b996fbd (patch)
tree7a679fc4729264b867c0fb71c8aa61bfbf7e1569 /src/client/views/webcam/DashWebRTCVideo.tsx
parentd97091421468238d32edf55c240bfb3b021e9e05 (diff)
Moved code into init
Diffstat (limited to 'src/client/views/webcam/DashWebRTCVideo.tsx')
-rw-r--r--src/client/views/webcam/DashWebRTCVideo.tsx5
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();
}