Hi Marco,
In the file: /templates/ja_company/acm/slideshow/tmpl/style-1.php
Look for this code:
function onYouTubePlayerAPIReady() {
player = new YT.Player('player', {
height: '315',
width: '560',
videoId: '<?php echo $helper->get('link-video');?>',
playerVars: {
'showinfo': 0,
'autoplay': 1
},
events: {
'onStateChange': onPlayerStateChange
}
});
jQuery('#acm-slideshow-<?php echo $module->id; ?>').addClass('play');
jQuery('#resume').addClass('hidden');
jQuery('#video-intro-<?php echo $module->id; ?> #pause').removeClass('hidden');
document.getElementById('resume').onclick = function() {
player.playVideo();
jQuery('#acm-slideshow-<?php echo $module->id; ?>').addClass('play');
jQuery(this).addClass('hidden');
jQuery('#video-intro-<?php echo $module->id; ?> #pause').removeClass('hidden');
};
document.getElementById('pause').onclick = function() {
player.pauseVideo();
jQuery('#acm-slideshow-<?php echo $module->id; ?>').removeClass('play');
jQuery(this).addClass('hidden');
jQuery('#video-intro-<?php echo $module->id; ?> #resume').removeClass('hidden');
};
}
try to add autoplay param + these lines of code:
jQuery('#acm-slideshow-<?php echo $module->id; ?>').addClass('play');
jQuery('#resume').addClass('hidden');
jQuery('#video-intro-<?php echo $module->id; ?> #pause').removeClass('hidden');
as above