aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/webcam/DashWebRTCVideo.tsx
diff options
context:
space:
mode:
authorMohammad Amoush <muhammedamoush@gmail.com>2019-12-08 16:12:16 -0500
committerMohammad Amoush <muhammedamoush@gmail.com>2019-12-08 16:12:16 -0500
commitf4382d73eec75f7d7f4bfe6eae3fb1efa128a021 (patch)
tree3df81209d85d56e84bf99c684552c75d66917afa /src/client/views/webcam/DashWebRTCVideo.tsx
parent01c131e8d7ecc2eac68e16a679c40b1156b41391 (diff)
Local Stream tracks stopped when component gets closed
Diffstat (limited to 'src/client/views/webcam/DashWebRTCVideo.tsx')
-rw-r--r--src/client/views/webcam/DashWebRTCVideo.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/webcam/DashWebRTCVideo.tsx b/src/client/views/webcam/DashWebRTCVideo.tsx
index a763fd64c..a9c67f026 100644
--- a/src/client/views/webcam/DashWebRTCVideo.tsx
+++ b/src/client/views/webcam/DashWebRTCVideo.tsx
@@ -25,6 +25,7 @@ const offerOptions = {
offerToReceiveVideo: 1,
};
+
/**
* This models the component that will be rendered, that can be used as a doc that will reflect the video cams.
*/
@@ -57,6 +58,7 @@ export class DashWebRTCVideo extends React.Component<CollectionFreeFormDocumentV
// DocumentDecorations.Instance.removeCloseCall(this.closeConnection);
}
+
// componentDidMount() {
// // DashWebRTC.setVideoObjects(this.localVideoEl!, this.peerVideoEl!);
// //DashWebRTC.init();