<%= turbo_stream_from @video_room %>
<%= turbo_stream_from @client.id %>

<article
  class="video_room"
  data-controller="video_room"
  data-video_room-id-value="<%= @video_room.id %>"
  data-video_room-client-id-value="<%= @client.id %>"
>
  <div class="media" id="media">
    <div class="medium medium--local" data-controller="medium">
      <video data-video_room-target="localMedium" data-medium-target="mediaElement" muted autoplay playsinline></video>

      <div class="medium-actions">
        <%= button_tag 'Enter',  data: { video_room_target: 'enter', action: 'video_room#enter' } %>
      </div>
    </div>
  </div>
</article>
