2018-08-30 17:42:42 +00:00
|
|
|
<button onclick="handleJoinSession()" data-room="<%= @chat_room.id %>">Join Room</button>
|
2018-08-31 05:02:24 +00:00
|
|
|
<!-- <div id="join-session" data-room="<%= @chat_room.id %>"> -->
|
|
|
|
<!-- <h1 style="color: white;">This is chatroom #<%= @chat_room.id %></h1> -->
|
2018-08-30 02:00:09 +00:00
|
|
|
<div id="chatroom-hook" data-chatroom-id='<%= @chat_room.id %>'></div>
|
|
|
|
|
2018-08-31 05:02:24 +00:00
|
|
|
<!-- <button id="test-btn">Test Connection</button> -->
|
2018-08-30 17:42:42 +00:00
|
|
|
<div class="call-container">
|
|
|
|
<div id="remote-video-container">
|
|
|
|
<div id="video_overlays">
|
|
|
|
<video id="local-video" autoplay></video>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<span id="current-user" class="text-color" style="display:none"><%= current_user.id %></span>
|
|
|
|
</div>
|
|
|
|
|
2018-08-31 05:02:24 +00:00
|
|
|
<!-- <script>
|
|
|
|
const joinSession = document.getElementById("join-session")
|
|
|
|
joinSession.addEventListener('load', event => {
|
|
|
|
handleJoinSession()
|
|
|
|
})
|
|
|
|
</script> -->
|
|
|
|
|
2018-08-30 02:00:09 +00:00
|
|
|
|
|
|
|
<%= javascript_pack_tag 'chatrooms' %>
|