-3
Eae you guys, beauty?
I’m going through a problem implemented a video slider on a website I’m doing, but this slider is playing the videos contained in it automatically, and I don’t know how to take it, I’ve tried it in several ways, putting as "false", the "Animation","animationLoop" etc. But I’m not getting it.
I’m using Flexslider to do this!
Below is my code in JS and also in HTML
Could someone help me ?
Code in JS :
$(document).ready(function(){
$(".flexslider-video")
.flexslider({
animation: false,
useCSS: false,
animationLoop: false,
smoothHeight: true,
video: false,
});
});
Code in the HTML:
<div class="flexslider-video">
<div class="flex-viewport" style="overflow: hidden; position: relative; height: 286.333px;">
<ul class="slides" style="width: 400%; margin-left: -570px;">
<li class="" data-thumb-alt="" style="width: 570px; margin-right: 0px; float: left; display: block;">
<iframe id="player_0" src="https://www.youtube.com/watch?v=8A6OqHd6dPY" width="600" height="281" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
</li>
<li data-thumb-alt="" class="flex-active-slide" style="width: 570px; margin-right: 0px; float: left; display: block;">
<iframe id="player_1" src="https://www.youtube.com/watch?v=8A6OqHd6dPY" width="600" height="281" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
</li>
</ul>
</div>
<ol class="flex-control-nav flex-control-paging">
<li>
<a href="#" class="">
1
</a>
</li>
<li>
<a href="#" class="flex-active">
2
</a>
</li>
</ol>
<ul class="flex-direction-nav">
<li class="flex-nav-prev">
<a class="flex-prev" href="#" tabindex="-1">
Previous
</a>
</li>
<li class="flex-nav-next">
<a class="flex-next flex-disabled" href="#" tabindex="-1">
Next
</a>
</li>
</ul>