• Resolved meirvak

    (@meirvak)


    hi,
    video display in media carousel default plugin is autoplay
    while in the detheme plugin i cant find a way to do it

    PLEASE HELP

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Detheme

    (@detheme)

    Hi,

    What do you mean to make a de carousel with autoplay video in it?
    Can you provide a screenshot for more clearly?

    Thank you

    Thread Starter meirvak

    (@meirvak)

    here is a link
    you can see that the video in the grid doesnt autoplay, you need to click the thumbnail and then play via vimeo or youtube

    https://www.enteractive.co.il/%d7%aa%d7%99%d7%a7-%d7%a2%d7%91%d7%95%d7%93%d7%95%d7%aa/

    please help

    Thread Starter meirvak

    (@meirvak)

    Plugin Author Detheme

    (@detheme)

    Hi,

    We see in the default media carousel element/ widget setting there is no autoplay. Here autoplay applies only the carousel slider.

    This is different when using video element/ widget. And it works autoplay video if you apply it in De Carousel.

    But in this De Gallery we don’t have this feature. And we think, it will burden your website’s performance if there are several autoplay videos.

    Thank you

    Thread Starter meirvak

    (@meirvak)

    what a stupid excuse
    it wont burden my site and thats how it should work

    too bad i wasted all this time on this shitty template and kit

    now i have to install a different plugin and insert 500 videos

    ??

    Plugin Author Detheme

    (@detheme)

    Hi,

    Sorry, we only provide opinions/suggestions. You are free to take action.

    If you want to use the autoplay feature, you can create a video template and apply it as a tab de carousel.
    Or, if you want to play without lightbox, you can disable it in a de gallery. It can make videos play together, but not autoplay.

    Thank you

    Thread Starter meirvak

    (@meirvak)

    well i fixed it
    if anyone interested add this js code to the footer in all the site

    GOOD LOCK with this templater with the new problem after the latest update ??

    ———————————————- CODE :

    /* Add your JavaScript code here.
    
    If you are using the jQuery library, then don't forget to wrap your code inside jQuery.ready() as follows:
    
    jQuery(document).ready(function( $ ){
        // Your code in here
    });
    
    --
    
    If you want to link a JavaScript file that resides on another server (similar to
    <script src="https://example.com/your-js-file.js"></script>), then please use
    the "Add HTML Code" page, as this is a HTML code that links a JavaScript file.
    
    End of comment */ 
    let elementToObserve = window.document.body;
    let observer = new MutationObserver(function(mutationsList, observer) {
    	mutationsList.forEach(element => {
    		if(!!element.addedNodes[0]){
    			if (element.addedNodes[0].className.includes("elementor-lightbox")){
    				//console.log(element.addedNodes[0].querySelector("iframe"));
    				let frame = element.addedNodes[0].querySelector("iframe");
    				if(!!frame){
    					frame.setAttribute("allow","autoplay");
    					frame.setAttribute("src",frame.src);
    				}
    			}
    		}
    	});
    });
    observer.observe(elementToObserve, {subtree:true, characterData: false, childList: true, attributes: false});
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘video autoplay in plugin’ is closed to new replies.