Video inside slider play pause

Video inside slider play pause

  

Hi Team,

I am using silk UI slider inside this I have a youtube video, I want it to be like if I play the video and slide go next it should be the pause.


Regards

Pankaj Pant


Hi Pankaj,

What carousel are you using? Web or Mobile?

It is possible to do but the solution is different for each carousel.

Thanks

bmarcelino wrote:

Hi Pankaj,

What carousel are you using? Web or Mobile?

It is possible to do but the solution is different for each carousel.

Thanks

I am using web carousel.


Hi Pankaj,

This change is a bit more complicated in the web carousel. You have to control when the carousel goes to the next or previous carousel element.

To control the carousel you can activate the Navigation of the pattern or you can create the buttons where you have to call the action Next (carousel.next ();) or a Previous (carousel.next ();). You can also know the current / active element of the carousel using carousel.currentItem.

To know when the carousel has changed or will change you need to use the callBacks that OWL provides, http://www.landmarkmlp.com/js-plugin/owl.carousel/#how-to

On this codepen you can find out how can you control the youtube player: https://codepen.io/briangelhaus/pen/meeLRO


Hope this helps.

Thanks.