Use video inside carousel

There is a not answered topic that is very similar to my problem here:HTML carousel with youtube videos stop roatation until end of video
That's why I decided to ask new question:
How can I use video inside of Bootstrap Carousel in the way the next slide of the carousel will be shown only after the video file ends?
Basically, I have a simple carousel here: