HTML5 Video Poster not working

1 reply·opened Aug 7, 2023
J
jocelynm14Aug 7, 2023

Hey!
I am using your shortcode example for HTML5 video background:

<div class="section dark" style="height: 550px;">

	<div class="container clearfix">

		...

	</div>

	<div class="video-wrap">
		<video poster="images/videos/deskwork.jpg" preload="auto" loop autoplay muted>
			<source src='images/videos/deskwork.mp4' type='video/mp4' />
			<source src='images/videos/deskwork.webm' type='video/webm' />
		</video>
		<div class="video-overlay"></div>
	</div>

</div>

Poster image is irrelevant as it only shows when the video is loaded.

The fix that you provide here does not work: https://support.semicolonweb.com/forums/topic/video-autoplay-sliders-poster-images/

Is there any other way as this creates a bad visual user experience.

Thanks

S
SemiColonWebSTAFFAug 7, 2023

Hello,

You can find and delete the following Code from the style.css File to always show the Video:

body:not(.has-plugin-html5video) .video-wrap video {
  opacity: 0;
}

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard