From ce5980ddf7cdd247f8e31be1c437b9c40d46e29d Mon Sep 17 00:00:00 2001 From: Mohammad Amoush <47069173+mamoush34@users.noreply.github.com> Date: Fri, 7 Feb 2020 19:48:38 -0500 Subject: More ui work done --- src/client/views/webcam/DashWebRTCVideo.scss | 49 ++++++++++++++++++++++------ src/client/views/webcam/DashWebRTCVideo.tsx | 14 ++++---- 2 files changed, 47 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/client/views/webcam/DashWebRTCVideo.scss b/src/client/views/webcam/DashWebRTCVideo.scss index 30665e849..ccb0a626b 100644 --- a/src/client/views/webcam/DashWebRTCVideo.scss +++ b/src/client/views/webcam/DashWebRTCVideo.scss @@ -8,6 +8,9 @@ box-shadow: $intermediate-color 0.2vw 0.2vw 0.4vw; border: solid #BBBBBBBB 5px; pointer-events: all; + display: flex; + flex-direction: column; + overflow: hidden; .webcam-header { height: 50px; @@ -18,19 +21,45 @@ width: 100%; } - #localVideo { - margin: 10px; - position: relative; - width: 300px; - max-height: 300px; + #roomName { + outline: none; + border-radius: inherit; + border: 1px solid #BBBBBBBB; } - #remoteVideo { - margin: 10px; - position: relative; - width: 300px; - max-height: 300px; + // #localVideo { + // width: 25%; + // height: 20%; + // position: absolute; + // top: 65%; + // z-index: 2; + // right: 5%; + // } + .side { + width: 25%; + height: 20%; + position: absolute; + top: 65%; + z-index: 2; + right: 5%; } + .main { + position: absolute; + width: 95%; + height: 75%; + top: 20%; + align-self: center; + } + + // #remoteVideo { + // position: absolute; + // width: 95%; + // height: 75%; + // top: 20%; + // align-self: center; + + // } + } \ No newline at end of file diff --git a/src/client/views/webcam/DashWebRTCVideo.tsx b/src/client/views/webcam/DashWebRTCVideo.tsx index 0b704db66..290ca7a48 100644 --- a/src/client/views/webcam/DashWebRTCVideo.tsx +++ b/src/client/views/webcam/DashWebRTCVideo.tsx @@ -2,7 +2,7 @@ import { observer } from "mobx-react"; import React = require("react"); import { CollectionFreeFormDocumentViewProps } from "../nodes/CollectionFreeFormDocumentView"; import { FieldViewProps, FieldView } from "../nodes/FieldView"; -import { observable } from "mobx"; +import { observable, action } from "mobx"; import { DocumentDecorations, CloseCall } from "../DocumentDecorations"; import { InkingControl } from "../InkingControl"; import "../../views/nodes/WebBox.scss"; @@ -38,6 +38,7 @@ export class DashWebRTCVideo extends React.Component { console.log('Remote stream added.'); this.remoteStream = event.stream!; this.peerVideoEl!.srcObject = this.remoteStream; + this.remoteVideoAdded = true; } private handleRemoteStreamRemoved = (event: MediaStreamEvent) => { @@ -398,15 +400,15 @@ export class DashWebRTCVideo extends React.Component
DashWebRTC
- this.roomText = e!} onKeyDown={this.onEnterKeyDown} /> -