This is all of my code of video-html5.php, also you can add variable with preload attribute to plugin, because I’m loading many videos asynchrously on mobile for Google Core Vitals. Playsinline fixes autoplay in all Safari browsers. Code:
<div id="<?php echo $el_id; ?>" class="video-player-for-wpbakery <?php echo $el_class; ?>">
<div class="video-player-for-wpbakery-container">
<video width="<?php echo $width; ?>" height="<?php echo $height; ?>" <?php echo $controls; ?> <?php echo $autoplay; ?> <?php echo $loop; ?> <?php echo $muted; ?> <?php if(isset($autoplay)){if($autoplay=="autoplay"){ ?> playsinline <?php }} ?> preload="none">
<source src="<?php echo $url; ?>" type="<?php echo $mime_type; ?>">
<?php _e('Your browser does not support the video tag.', 'video-player-for-wpbakery'); ?>
</video>
</div>
</div>
Also you have typo in CHANGELOG.
]]>Any idea why the video is not there on mobile safari, but with the safari on mac video is there and autoplaying? I have autoplay enabled but music is off. I can see play it on mobile if I enable controls, but that’s not the effect I want to achieve.
]]>Hi, I’d like this video to be responsive. Shat should I do?
]]>