<% content_for :page_styles do %>
<%= stylesheet_link_tag 'mejs4_player' %>
<% end %>
<% content_for :page_scripts do %>
<%= javascript_include_tag "mejs4_player" %>
<% end %>

<script>
<!-- Missing title and logo features -->
var mejs4AvalonPlayer = new MEJSPlayer({
  currentStreamInfo: <%= section_info.to_json.html_safe %>,
  features: ['playpause', 'current', 'progress', 'duration', 'volume', 'tracks', '<%= section_info[:is_video] ? "quality" : "hdToggle" %>', 'linkBack', 'fullscreen'],
  highlightRail: true,
  defaultQuality: '<%= current_quality(section_info) %>'
});
</script>

<% content_for :page_styles do %>
<%= stylesheet_link_tag 'mejs4_player' %>
<% end %>
<% content_for :page_scripts do %>
<%= javascript_include_tag "mejs4_player" %>
<% end %>

<script>
<%# Do not include quality or HDtoggle feature for embedded audio because adaptive streaming %>
<% quality_feature = section_info[:is_video] ? "'quality', " : '' %>
<!-- Missing title and logo features -->
var mejs4AvalonPlayer = new MEJSPlayer({
  currentStreamInfo: <%= section_info.to_json.html_safe %>,
  features: ['playpause', 'current', 'progress', 'duration', 'volume', 'tracks', <%= quality_feature.html_safe %>'linkBack', 'fullscreen'],
  highlightRail: true,
  defaultQuality: '<%= current_quality(section_info) %>'
});
</script>

Exclude HDToggle feature for embedded audio
Exclude HDToggle feature for embedded audio
