-
‘)).children(‘.add-play-icon’).removeClass(‘add-play-icon’);
var adjustCarousel = function() {
var carousel = EP.Clients.CMG.MIXEDMEDIA.carousels[mixedMediaContainerId];
if( carousel ){
/* Adjust carousel height */
carousel.redraw();
}
};vidContainer.empty();
AnvatoVideoPlayer.loadVideoByLatestVersionAnvatoJS(vidContainerId, config);
adjustCarousel();var setListenerForPlayerObj = function() {
var ctx = this;
AnvatoVideoPlayer.addListener(vidContainerId, function(e) {
if (e && e.name === ‘FIRST_FRAME_READY’) {
A.later(1000, ctx, adjustCarousel);
}
});
cmanvato.get(vidContainerId).then(function(playerObj){
playerObj.onReady = function(playerInstance){
mixedMediaContainer.trigger(“video-loaded”, playerObj);
}
});
};
setListenerForPlayerObj();EP.Clients.CMG.MIXEDMEDIA.players[mixedMediaContainerId] = EP.Clients.CMG.MIXEDMEDIA.players[mixedMediaContainerId] || [];
EP.Clients.CMG.MIXEDMEDIA.players[mixedMediaContainerId].push( vidContainerId );
};var autoPlay = false;
if (!window[‘_topVideoLoaded’]) {
autoPlay = true;
}if (autoPlay) {
$(document).ready(function() {
loadVideo();
});
} else {
$(‘#mixed_media_video_vid_id926943499_122851’).click(function(e){
e.preventDefault();
loadVideo();
});
}
})( AUI(), jQuery );
“);
}
if ($(imageDivId).length == 0) {
$(“#wrapper”).after(contentText);
}
})(jQuery);