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?
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
Post a Comment