You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that autoplay is possible on iOS 10 devices (see https://webkit.org/blog/6784/new-video-policies-for-ios/), will you be updating the plugin to allow for this? Or can the current version be modified in some way to accomplish this?
Let me know!
The text was updated successfully, but these errors were encountered:
step 3: //to make the background video play in ipad with ios 10 and above only if (UA.match(/iPad/)) { var video = $('.header-container').data('vide'); video.getVideoObject().css({'visiblity': 'visible', 'opacity' : 1}); }
The above code will make the video element visible during loading for ipads, and since autoplay is set to true the background video will start playing
@jatasya, thanks for your help. I reformed the code as such:
if (/iP(hone|od|ad)/.test(navigator.platform)) {
var v = (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/);
var ver = [parseInt(v[1], 10), parseInt(v[2], 10), parseInt(v[3] || 0, 10)];
if (ver[0] >= 10) {
// Do the magic to reveal the video
}
}
Now that autoplay is possible on iOS 10 devices (see https://webkit.org/blog/6784/new-video-policies-for-ios/), will you be updating the plugin to allow for this? Or can the current version be modified in some way to accomplish this?
Let me know!
The text was updated successfully, but these errors were encountered: