mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-10-22 09:42:11 +00:00
set up action able to work with webrtc in localhost
This commit is contained in:
@@ -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>
|
||||
|
2
app/views/video_sessions/create.html.erb
Normal file
2
app/views/video_sessions/create.html.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
<h1>VideoSessions#create</h1>
|
||||
<p>Find me in app/views/video_sessions/create.html.erb</p>
|
Reference in New Issue
Block a user