video fullsize fullwidth - vimeo, youtube, swiper

3 replies · opened Apr 5, 2023

Rrx_69Apr 5, 2023

hi

i would like to have a page with video full size

the video is long, about 1 minute.

i ve done a couple of examples

  1. swiper canvas slider video, it does not work well on mobile
    https://www.weyoga.it/TEST-Canvas/index-vid-.html

  2. youtube video , section, is it possible to add the POSTER image before it start?
    https://www.weyoga.it/TEST-Canvas/index_off_video-2-fets-.html

  3. vimeo video, i'm not shure, it do not work ok, how should it be done with vimeo?
    https://www.weyoga.it/TEST-Canvas/index_off_video-2-fets-vimeo.html
    or
    https://www.weyoga.it/TEST-Canvas/index_off_video-2-fets-vimeo-2-.html

I think Vimeo plays better, but im not shure how to have it properly, i would like to use Vimeo.

what do you think?

Thank you

SSemicolon WebSTAFFApr 6, 2023

Hello,

  1. This can be fixed:
  • Add the playsinline Attribute to the <video> Tag. Example:
<video id="slide-video" poster="images/videos/explore-poster.jpg" preload="auto" loop autoplay muted playsinline>
    ...
</video>
  • Then add the .no-placeholder Class to the .video-wrap Container that encloses the <video> Tag. Example:
<div class="video-wrap no-placeholder">
    <video poster="images/videos/explore-poster.jpg" preload="auto" loop autoplay muted playsinline>
        ...
    </video>
    <div class="video-overlay" style="background-color: rgba(0,0,0,0.55);"></div>
</div>

This should definitely work fine.

  1. In this Version of Canvas, it is not supported but available in the Latest Version.

  2. Unfortunately, embedded videos will always have problems scaling on Mobile Devices. We recommend YoutubeBG or HTML5 Videos (more recommended).

The Solution 1 above should work fine.

Hope this Helps!

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

SSemicolon WebSTAFFApr 7, 2023

Hello,

This is the Default Behavior of the Video as it will play once it is loaded and you will need to use a Custom Solution to customize this behavior. You can show a Placeholder Image till the Video is ready to Play and then hide it once the Video starts playing. Or you can try using a Background Image on the .video-wrap Element. Example: style="background: url(video-sito-1_2-.jpg) no-repeat center center; background-size: cover;".

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