Hi,
Kriesi is putting out an update within a day. http://www.kriesi.at/support/topic/choices-videos-dont-play-on-mobile-devices-youtubevimeo-on-iphone-and-ipad
I appreciate all your help and patience.
Just for the future record my last feeble attempt that you said you can live with is below; which would replace the same function in avia.js ...
// -------------------------------------------------------------------------------------------
// Hover effect activation
// -------------------------------------------------------------------------------------------
(function($) {
$.fn.avia_activate_hover_effect = function(variables) {
var defaults = {
autolinkElements: 'a[rel^="prettyPhoto"], a[rel^="lightbox"], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href$=".mov"] , a[href$=".swf"] , a[href*="vimeo.com"] , a[href*="youtube.com"], a.external-link, .avia_mega a, .dynamic_template_columns a, .slideshow a'
};
var options = $.extend(defaults, variables),
css3 = $('html')
.is('.csstransforms'),
opacity_val = 0.8;
return this.each(function() {
if (css3) {
opacity_val = 1;
}
$(options.autolinkElements, this)
.not(".noLightbox a")
.contents('img:not(.filtered-image)')
.each(function() {
var img = $(this),
a = img.parent(),
preload = img.parents('.preloading'),
$newclass = 'lightbox_video',
applied = false;
if (a.attr('href')
.match(/(jpg|gif|jpeg|png|tif)/)) {
$newclass = 'lightbox_image';
}
if (a.is('.external-link') || !a.attr('href')
.match(/(jpg|gif|jpeg|png|\.tif|\.mov|\.swf|vimeo\.com|youtube\.com)/)) {
$newclass = 'external_image';
}
if (a.is('a')) {
if (img.is('.alignright')) {
img.removeClass('alignright');
a.addClass('alignright')
}
if (img.is('.alignleft')) {
img.removeClass('alignleft');
a.addClass('alignleft')
}
if (img.css('float') == 'left' || img.css('float') == 'right') {
a.css({
float: img.css('float')
})
}
if (!a.css('position') || a.css('position') == 'static') {
a.css({
position: 'relative',
display: 'inline-block'
});
}
if (img.is('.aligncenter')) a.css({
display: 'block'
});
if (img.is('.avia_mega img')) a.css({
position: 'relative',
display: 'inline-block'
});
if (img.css('left')) {
a.css({
left: img.css('left')
});
img.css('left', 0);
}
}
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i)) || (navigator.userAgent.match(/Android/i))) {
var bg = $("<span class='image_overlay_effect2'><span class='image_overlay_effect_inside2'></span></span>")
.appendTo(a);
bg.css({
display: 'block',
zIndex: 5,
opacity: 1
});
} else {
var bg = $("<span class='image_overlay_effect'><span class='image_overlay_effect_inside'></span></span>")
.appendTo(a);
bg.css({
display: 'block',
zIndex: 5,
opacity: 0
});
bg.hover(function() {
if (applied == false && img.css('opacity') > 0.5) {
bg.addClass($newclass);
applied = true;
}
bg.stop()
.animate({
opacity: opacity_val
}, 400);
},
function() {
bg.stop()
.animate({
opacity: 0
}, 400);
});
}
});
});
};
})(jQuery);
Thanks,
Nick