Okay
  Public Ticket #1744888
Layerslider Video
Closed

Comments

  • Andrew Vick started the conversation

    Can't control the video. Sometimes, but not every time, at the end (2nd slide in RG Office), it will start to loop back to the beginning, instead of advancing to the next slide (goes from sled dogs back to opening shot, then jumps to first property for sale).  It's currently self hosted, but I've also tried Vimeo and YouTube hosted options with the same result. HELP! :)

  • [deleted] replied

    Hello Andrew Vick,

    Thank you for getting in touch with us. My name is Attila and I'm happy to assist you today. I appreciate your patience while we've been working towards your ticket.

    I've checked your slider, but I wasn't able to reproduce this on my end. The slideshow always advances to the next slide, not backwards. I do not see any setting that would indicate this either. Is there a way to recreate this error so we can investigate it ?

  • Andrew Vick replied

    It's not slide to slide, it's the video itself. The video is 30 seconds long and the duration is set to 30 seconds, but at the end of the video slide, it loops back to the beginning of the video for a couple of seconds, then advances to the next slide, as it should.  Make sense?

  • Andrew Vick replied

    I could also record what I'm seeing on my screen and attach if needed.

  • [deleted] replied

    If the video lasts longer than the slide and it has loop enabled, it might start again until the slide actually ends. You could turn off the video's loop or match its time with the slide's end to prevent the looping of the video.

  • Andrew Vick replied

    That must be what I'm missing - where is loop defined for a specific video layer? 

  • Andrew Vick replied

    Also, the video isn't auto-playing in Chrome, but works fine in Firefox. Any ideas?

  • Andrew Vick replied

    Any help with this?

  • [deleted] replied

    Currently, there is no built-in option in the plugin to enabled/disable loop for videos, so it's most likely applied in the embed code you are using. You should be able to adjust it there.

    Regarding the Chrome video autoplay. The reason for that is Google Chrome 66's Autoplay Policy Change. Google introduced new browser restrictions, which will prevent automatic video/audio playback in certain situations. Autoplay is now allowed only when either the media won't play sound, after the user clicks or taps on the site, or (on desktop) if the user has previously shown an interest in media on the site. 
    We will release an update that will adjust this, and will provide further options to mitigate these restrictions. Since it's governed by the browser, there is no way to restore the previous behavior. However, we can supply alternate options like autoplaying muted videos where visitors can restore sound with a separate button. We are already working on this update.

  • Andrew Vick replied

    Here's the code and it's locally hosted - 

    <video width="640" height="360" preload="metadata" controls>
    <source src="/wp-content/uploads/2018/10/RGR Video.mp4" type="video/mp4">
    </video>

    Do you know of a way to change that code to say "do not loop"?


  • [deleted] replied

    Please set up a temporary WP login for us, so we can check on it further. Make sure to set the message to private so others can't see it. Thank you.

  •   Andrew Vick replied privately
  • [deleted] replied

    Thank you. My colleagues and I will look into this to see if we can find anything, and get back to you shortly.

  • [deleted] replied

    Thank you for your patience. Videos added as slide background will be looping by default. That cannot be changed currently. But as a workaround you could add it as a normal video layer and set its sizes to 100%. So it will look the same, but you can prevent looping.

  • Andrew Vick replied

    Okay - I've tried that and it almost works, but setting the slide duration to shorter than the video clip (so that it doesn't show the intro screen) doesn't seem to have any effect. Any help? The whole thing smooths out the second time through, which is fine as it will be rotating on a television.

  • [deleted] replied

    Your slider might be set to wait for all layers before changing to the next slide, so limiting its time does not have any effect on layer timings in this case. If you force the slide change when its time ends, it should push out the video layer without waiting and advance.

  • Andrew Vick replied

    And where can I find that setting? Can you tell me exactly what the settings need to be?

  • [deleted] replied

    Thank you for the feedback. We'll login to your admin again, check what might be happening at the end of the video, and get back to you.

  • Andrew Vick replied

    Hi Attila - thought I'd check in and see where things are. Thanks!

  • Andrew Vick replied

    Any help?

  • [deleted] replied

    Thank you for your patience. As you've removed the video from being a slide background, it lost some of its attributes that only slide backgrounds have. For example its animation will no longer be slide transition, but layer transition. Also, you can no longer control it with the slide duration, but with layer duration. So as it's a layer now, you have to set and adjust its timing (force it to leave in time) and transition in the layer options. Furthermore, since you've removed the slide background, there is no longer slide transition either. The lack of slide transition might result in an 'ugly' slide change, or even showing the video layer transitioning out at the end for an extra moment that you don't want. I'd recommend to set up a slide background image that will be used for slide transition to smoothen the slide change, and control the video layer timing with the Transitions -> Ending Transition tab. This should achieve what you would like to set up.