summary refs log tree commit diff
path: root/webclient/room/room.html
diff options
context:
space:
mode:
authorDavid Baker <dbkr@matrix.org>2014-08-28 19:03:34 +0100
committerDavid Baker <dbkr@matrix.org>2014-08-28 19:03:34 +0100
commitca7426eee0f1d421815ff1921bfd2a5cd03c960f (patch)
tree2d85533f4462c81481369c8ffa90c97e38f00fef /webclient/room/room.html
parentWIP voip support on web client (diff)
downloadsynapse-ca7426eee0f1d421815ff1921bfd2a5cd03c960f.tar.xz
First basic working VoIP call support
Diffstat (limited to '')
-rw-r--r--webclient/room/room.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/webclient/room/room.html b/webclient/room/room.html
index 4f5584b568..dceb7322f5 100644
--- a/webclient/room/room.html
+++ b/webclient/room/room.html
@@ -98,13 +98,20 @@
                         <button ng-click="inviteUser(userIDToInvite)">Invite</button>
                 </span>
                 <button ng-click="leaveRoom()">Leave</button>
-                <button ng-click="startVoiceCall()">Voice Call</button>
+                <button ng-click="startVoiceCall()" ng-show="currentCall == undefined">Voice Call</button>
+                <div ng-show="currentCall.state == 'ringing'">
+                Incoming call from {{ currentCall.user_id }}
+                <button ng-click="answerCall()">Answer</button>
+                <button ng-click="hangupCall()">Reject</button>
+                </div>
+                {{ currentCall.state }}
             </div>
         
             {{ feedback }}
             <div ng-hide="!state.stream_failure">
                 {{ state.stream_failure.data.error || "Connection failure" }}
             </div>
+           <audio id="remoteAudio" autoplay="autoplay"></audio>
         </div>
     </div>