made edits to call page

This commit is contained in:
Beatrice Olivera
2018-08-28 20:36:56 +01:00
parent aaf935eec6
commit cbfa5b8e7a
7 changed files with 66 additions and 173 deletions

View File

@@ -10,8 +10,7 @@
<%#= stylesheet_pack_tag 'application', media: 'all' %> <!-- Uncomment if you import CSS in app/javascript/packs/application.js -->
</head>
<body>
<%= render 'shared/navbar' unless params["action"] == "home" || params["action"] == "new" %>
<%= render 'shared/navbar' unless params["action"] == "home" || params["action"] == "new" || params["action"] == "call" %>
<%= render 'shared/flashes' %>
<%= yield %>
<%= javascript_include_tag 'application' %>

View File

@@ -1,13 +1,40 @@
<h1>Action Cable Signaling Server</h1>
<div>Random User ID:
<span id="current-user"><%= rand(0..10000) %></span>
<div class="call-container">
<div id="remote-video-container">
<div id="video_overlays">
<video id="local-video" autoplay></video>
</div>
</div>
</div>
<div id="remote-video-container"></div>
<video id="local-video" autoplay></video>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<hr />
<div>
<span class="text-color" style="display:none">Random User ID:</span>
<span id="current-user" class="text-color" style="display:none"><%= rand(0..10000) %></span>
</div>
<button onclick="handleJoinSession()">
Join Room

View File

@@ -8,7 +8,7 @@
</div>
<div class="video-feed half">
<div class="video-content">
<video id="contacts-video" autoplay=""></video>
<!-- <video id="contacts-video" autoplay=""></video> -->
</div>
</div>
</div>