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, https://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.



Pankaj pant wrote:

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 did you find a way to let the video work on the carousel, I don't know how to use it from resource file?

Yes, I was able to add video inside the carousel but my issue was if I go to next it should stop playing the first one.

Can you please share your OML where you are not able to add video inside carousel.


Regards,

Pankaj