set up action able to work with webrtc in localhost

This commit is contained in:
Beatrice Olivera
2018-08-27 19:05:57 +01:00
parent f9cbb7c680
commit aa3693d58c
9 changed files with 252 additions and 2 deletions

View File

@@ -1,2 +1,18 @@
<h1>Pages#home</h1>
<p>Find me in app/views/pages/home.html.erb</p>
<h1>Action Cable Signaling Server</h1>
<div>Random User ID:
<span id="current-user"><%= rand(0..10000) %></span>
</div>
<div id="remote-video-container"></div>
<video id="local-video" autoplay></video>
<hr />
<button onclick="handleJoinSession()">
Join Room
</button>
<button onclick="handleLeaveSession()">
Leave Room
</button>

View File

@@ -0,0 +1,2 @@
<h1>VideoSessions#create</h1>
<p>Find me in app/views/video_sessions/create.html.erb</p>