summary refs log tree commit diff
path: root/webclient/index.html
diff options
context:
space:
mode:
authorDavid Baker <dbkr@matrix.org>2014-09-18 11:04:45 +0100
committerDavid Baker <dbkr@matrix.org>2014-09-18 11:04:45 +0100
commite932e5237eaea4c08e6f7bcd849e4be6bd2e3f98 (patch)
treeab22cc46fc524a81c986646a88c474cecfeaaca0 /webclient/index.html
parentVideo calling (in a tiny box at the moment) (diff)
downloadsynapse-e932e5237eaea4c08e6f7bcd849e4be6bd2e3f98.tar.xz
WIP video chat layout
Diffstat (limited to 'webclient/index.html')
-rw-r--r--webclient/index.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/webclient/index.html b/webclient/index.html
index 19b1a3b288..05801a93bc 100644
--- a/webclient/index.html
+++ b/webclient/index.html
@@ -45,6 +45,7 @@
 </head>
 
 <body>
+    <div id="videoBackground" ng-class="videoMode" ng-show="videoMode == 'large' || videoMode == 'fullscreen'"></div>
 
     <div id="header">
         <!-- Do not show buttons on the login page -->
@@ -93,8 +94,8 @@
                     <source src="media/busy.mp3" type="audio/mpeg" />
                 </audio>
             </div>
-            <video id="localVideo" ng-show="currentCall && currentCall.type == 'video' && (currentCall.state == 'connected' || currentCall.state == 'connecting' || currentCall.state == 'invite_sent')"></video>
-            <video id="remoteVideo" ng-show="currentCall && currentCall.type == 'video' && currentCall.state == 'connected'"></video>
+            <video id="localVideo" ng-class="videoMode" ng-show="currentCall && currentCall.type == 'video' && (currentCall.state == 'connected' || currentCall.state == 'connecting' || currentCall.state == 'invite_sent')"></video>
+            <video id="remoteVideo" ng-class="[videoMode, currentCall.state]" ng-show="currentCall && currentCall.type == 'video' && currentCall.state == 'connected' || currentCall.state == 'ended'"></video>
 
             <a href id="headerUserId" ng-click='goToUserPage(user_id)'>{{ user_id }}</a>
             &nbsp;