Auto play for video module - kary4/divituts GitHub Wiki
Apply an additional css class to the video module so we can catch it separately to not affect to all the other videos. For example add: [b]video-autoplay[/b] class. If you don't quite understand what that mean please refer to the following small tutorial: https://github.com/kary4/divituts/wiki/How-to-add-additional-CSS-classes-to-divi-modules
Next, Please add the following script to the [b]wp-admin>divi>theme options>Integration>Add code to the < head > of your blog [/b]option:
<script>
jQuery( document ).ready(function() {
setTimeout(function(){
jQuery('.video-autoplay a.et_pb_video_play').trigger('click');
},1000);
});
</script>
jQuery( document ).ready(function() {
jQuery('.custom-video-autoplay video').prop('autoplay', true);
jQuery('.custom-video-autoplay .et_pb_video_overlay').hide();
});