Module: Fenetre::VideoChatHelper

Defined in:
app/helpers/fenetre/video_chat_helper.rb

Instance Method Summary collapse

Instance Method Details

#fenetre_video_chat_container(room_id, user_id, theme: 'dark') ⇒ Object

Helper method to render the video chat container with proper data attributes



6
7
8
9
10
# File 'app/helpers/fenetre/video_chat_helper.rb', line 6

def fenetre_video_chat_container(room_id, user_id, theme: 'dark')
  content = stylesheet_link_tag('fenetre/video_chat', media: 'all')
  js = javascript_include_tag('fenetre.js', type: 'module')
  content + js + video_chat_main_container(room_id, user_id, theme)
end