fix error

This commit is contained in:
邱博亞 2021-11-15 12:57:04 +08:00
parent 3b2f22159e
commit 594aa306a0
1 changed files with 5 additions and 3 deletions

View File

@ -345,9 +345,11 @@
//jPlayer_<%= i %>_data["autoPlay"] = <%= @autoplay_video == true %>;
jPlayer_<%= i %>["ready"] = function () {
$(this).jPlayer("setMedia", jPlayer_<%= i %>_data);
<% if @autoplay_video == true %>
$(this).jPlayer("mute", true).jPlayer("play",0);
<% end %>
if ($(this).parents(".ba-banner-widget-youtube").eq(0).find(".w-ba-banner__slide").eq(0)==$(this).parents(".w-ba-banner__slide").eq(0)){
<% if @autoplay_video == true %>
$(this).jPlayer("mute", true).jPlayer("play",0);
<% end %>
}
<% unless @hide_video_tools %>
$(this).parents('.jp-video').eq(0).removeClass('hide-ui');
<% end %>