This seams sort of obvious, but shouldn’t the autoplay, muted, loop options be optional when setting a video as background, e.g. for a row or top block?
Also, why isn’t the playsinline attribute there by default? The playsinline attribute allows for autoplaying of videos in Safari iOS. Having to add that attribute with something like this:
jQuery(window).load(function(){
var video = jQuery(’#my-video video.x-mejs’);
video.attr(‘playsinline’,’’);
});
is somewhat clumsy, unstable and slow. This attribute should definitely be there by default, and if these attributes are optional in the future this one should show as well.
Temporary fix (for anyone else looking to solve this issue):
For now I’ve just edited the source code, root/wp-content/plugins/cornerstone/includes/shortcodes/video-player.php -> line 141 add playsinline to video element. But as we all know, editing source code is not a longterm fix.
Please fix this by
- adding playsinline as a default value (just like autoplay, muted and loop) for background videos
- add checkboxes for above mentioned options when selecting a background video
Thank you!