create live meeting when Conference button is clicked
This commit is contained in:
@@ -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 %>
|
||||
Reference in New Issue
Block a user