.vjs-default-skin {
color: #cccccc;
}
.vjs-default-skin .vjs-control-bar, .vjs-default-skin .vjs-menu-button .vjs-menu .vjs-menu-content {
background-color: rgba( 7,20,30, 0.7 ) }
.vjs-default-skin .vjs-volume-level, .vjs-default-skin .vjs-play-progress {
background-color: #cd1d1d;
}
.vjs-default-skin .vjs-slider {
background-color: rgba( 51,51,51, 0.9 ) }
.vjs-default-skin .vjs-big-play-button {
background-color: rgba( 7,20,30, 0.7 ) border-color: #3b4249;
}
.ywcfav_video_container .ywcfav_placeholder_container span:before, .ywcfav_video_modal_container .ywcfav_placeholder_modal_container span:before, .ywcfav_video_embd_container .ywcfav_video_embd_placeholder span:before,
.ywcfav_audio_modal_container .ywcfav_audio_placeholder_modal_container span:before, .ywcfav_audio_container .ywcfav_audio_placeholder_container span:before {
color: rgba( 7,20,30, 0.7 ) }
.ywcfav_play {
background-color: rgba( 7,20,30, 0.7 ) border-color: #3b4249;
}
.ywcfav_play:before {
color: #cccccc !important;
}
.ywcfav_video_container .ywcfav_placeholder_container:hover .ywcfav_play, .ywcfav_video_modal_container .ywcfav_placeholder_modal_container:hover .ywcfav_play, .ywcfav_video_embd_container .ywcfav_video_embd_placeholder:hover .ywcfav_play, .ywcfav_audio_modal_container .ywcfav_audio_placeholder_modal_container:hover .ywcfav_play, .ywcfav_audio_container .ywcfav_audio_placeholder_container:hover .ywcfav_play,
.vjs-default-skin:hover .vjs-big-play-button {
border-color: #3b4249;
background-color: rgba( 7,20,30, 0.7 ) }
jQuery(function ($) {
var iframe_id = 'ywcfav_video_id-as11dgju73',
iframe = null,
force_stop = false,
player = null;
var hide_gallery_trigger_and_onsale_icon = function (e) {
jQuery('.woocommerce span.onsale:first, .woocommerce-page span.onsale:first').hide();
},
show_gallery_trigger_and_onsale_icon = function (e) {
jQuery('.woocommerce span.onsale:first, .woocommerce-page span.onsale:first').show();
};
if( !$(document).find('.vbox-inline .ywcfav-video-content.host' ).length ){
iframe_id = iframe_id+'_html5_api';
}
iframe_id = iframe_id.replace('_html5_api','');
iframe = $(document).find('#'+iframe_id);
if (iframe.length) {
global_args = iframe.data('setup'),
is_stoppable = false;
if (typeof global_args !== 'undefined') {
is_stoppable = 'yes' == global_args.is_stoppable;
}
if (typeof videojs !== 'undefined') {
player = videojs(iframe_id);
player.ready(function () {
setTimeout(function () {
if (global_args.autoplay && global_args.featured_content_selected && !force_stop) {
// player.autoplay('muted');
}
}, 1000);
player.volume(global_args.volume);
$(document).trigger('ywfav_custom_content_created', [player, iframe]);
this.on('pause', function () {
if (!is_stoppable && !this.ended() && !force_stop) {
player.play();
force_stop = false;
}
show_gallery_trigger_and_onsale_icon(false);
});
this.on('ended', function () {
force_stop =true;
show_gallery_trigger_and_onsale_icon(event);
});
this.on('playing', function () {
hide_gallery_trigger_and_onsale_icon(event);
});
});
}
}
});