aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/webcam/DashWebRTC.ts
diff options
context:
space:
mode:
authorandrewdkim <adkim414@gmail.com>2019-11-05 18:31:52 -0500
committerandrewdkim <adkim414@gmail.com>2019-11-05 18:31:52 -0500
commit2cf3ed4cd22726fdbe7f587605457271482c3a28 (patch)
tree9ffa5a7499f42befeacf34a512f33b1821f62cfd /src/client/views/webcam/DashWebRTC.ts
parent40676ec39b9ad706c926b0a07e6d0dcbf9ae9ba5 (diff)
add a prompt and figure out message why not sending
Diffstat (limited to 'src/client/views/webcam/DashWebRTC.ts')
-rw-r--r--src/client/views/webcam/DashWebRTC.ts44
1 files changed, 11 insertions, 33 deletions
diff --git a/src/client/views/webcam/DashWebRTC.ts b/src/client/views/webcam/DashWebRTC.ts
index 801fd782d..bd0bd7f9a 100644
--- a/src/client/views/webcam/DashWebRTC.ts
+++ b/src/client/views/webcam/DashWebRTC.ts
@@ -1,7 +1,9 @@
import { DocServer } from '../../DocServer';
-
+/**
+ * This namespace will have the code required to have functionality code for the usage of webRTC.
+ */
export namespace DashWebRTC {
@@ -130,6 +132,14 @@ export namespace DashWebRTC {
remoteVideo = remoteVideo;
}
+ export function setLocalVideoObject(localVideoRef: HTMLVideoElement) {
+ localVideo = localVideoRef;
+ }
+
+ export function setRemoteVideoObject(remoteVideoRef: HTMLVideoElement) {
+ remoteVideo = remoteVideoRef;
+ }
+
@@ -286,36 +296,4 @@ export namespace DashWebRTC {
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
} \ No newline at end of file