I use the carousel slider from Bootstrap. But when I put images and videos in it but when I loop the videos they won't stop looping. But I want them to stop and reset so when it gets back to that slide the video starts from the beginning, not somewhere in the middle of the video. Also I was wondering if it's possible to not set an interval but play the video till the end before going to the next slide.
JS
$("#myCarousel").carousel({
interval: 4500
});
PHP
<div id="myCarousel" class="carousel slide carousel-fade" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="">
</div>
<div class="carousel-item">
<video id="myVideo" loop autoplay muted><source src=""></video>
</div>
<div class="carousel-item">
<video id="myVideo" loop autoplay muted><source src=""></video>
</div>
</div>
</div>
I made a JSFiddle. I have removed
loop autoplay
from the video tags.