javascript - Start html5 video within an owl.carousel -


i'm building males fashion site slider have both images , video in it. i'm using owl.carousel slider. video plane html5 video tag.
i'm trying start video whith jquery this: $('#video')[0].play();

it works when video outside slider/carousel, how start inside?

codepen link

i codepen. after few tests, saw 2 containers class video-slider video tag same id "video" inside. (check debug console on render view , jquery code $(".video-slide").children()).

you can start videos jquery code $(".video-slide").children().each(function() { this.play(); }); before need find , why blocks duplicated.

i hope helps


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -