create live meeting when Conference button is clicked

This commit is contained in:
Bilal
2020-09-14 17:32:45 +03:00
parent fcc856f7fc
commit ba4e6767f7
5 changed files with 26 additions and 20 deletions

View File

@@ -1,13 +1,17 @@
<%= javascript_include_tag "https://unpkg.com/@daily-co/daily-js" %>
<% if @live_meeting_url.present? %>
<%= javascript_include_tag "https://unpkg.com/@daily-co/daily-js" %>
<%= javascript_tag nonce: true do %>
callFrame = window.DailyIframe.createFrame({
showLeaveButton: true,
iframeStyle: {
position: 'fixed',
width: '100%',
height: '90%'
}
});
callFrame.join({ url: '<%= @live_meeting_url %>' });
<%= javascript_tag nonce: true do %>
callFrame = window.DailyIframe.createFrame({
showLeaveButton: true,
iframeStyle: {
position: 'fixed',
width: '100%',
height: '90%'
}
});
callFrame.join({ url: '<%= @live_meeting_url %>' });
<% end %>
<% else %>
<p><%= t '.meeting_not_ready_message' %></p>
<% end %>