Doubts about the videos and lightbox

1 reply · opened Nov 24, 2020

CclaubergaloNov 24, 2020

Hey!
I made this web claudiabergalo.com.ar with your template and I need to know how can I see , in mobile, the videos uploaded there with in the lightbox. In mobile if you click a video it redirects to youtube.com.
On the other hand, I can't make work the main video in mobile too.

Thanks for your help.

SSemicolon WebSTAFFNov 24, 2020

Hello,

  1. Simply add the data-disable-under="0" Attribute to the data-lightbox="iframe" Element. Example:
    [ch_pre]Escuchar reel[/ch_pre]

  2. Apple and Android do not allow autoplay for HTML5 Videos/Audio to prevent unsolicited usage of Bandwidth (which can be Cellular) on the User’s Mobile Device. They can only be played on their native Video Player.

Here is the Official Reference for Apple: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html .

Meanwhile, currently, the Inline Video Autoplay is supported only from iOS 10 onwards. You can use the following instructions to make it work on iOS 10 or above devices:

i. Add the playsinline Attribute to the <video> Tag. Example:
[ch_pre]<video id="slide-video" poster="images/videos/explore.jpg" preload="auto" loop autoplay muted playsinline>
...
</video>[/ch_pre]

ii. Then add the .no-placeholder Class to the .video-wrap Container that encloses the <video> Tag. Example:
[ch_pre]<div class="video-wrap no-placeholder">
<video poster="images/videos/explore.jpg" preload="auto" loop autoplay muted playsinline>
...
</video>
<div class="video-overlay" style="background-color: rgba(0,0,0,0.55);"></div>
</div>[/ch_pre]

This should definitely work fine. Hope this Helps!

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

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