title: autoplay video in slider
body: <p>I am using the cycle2 plugin, and i have a video gallery and what i am after is when the current slide is shown, autoplay the video.</p>
  
  <p>He does have a similar plugin for this but it looks like it's only for youtube whereas i am using the video html tag with fallbacks:
  <a href="http://jquery.malsup.com/cycle2/demo/video.php" rel="nofollow">http://jquery.malsup.com/cycle2/demo/video.php</a></p>
  
  <p>Obviously i cant can't add autoplay to the videos as they all play at once and not sure how to handle this. Is there a way around from his api url: <a href="http://jquery.malsup.com/cycle2/api/" rel="nofollow">http://jquery.malsup.com/cycle2/api/</a> or will i have to create a function from scratch that when a certain slider is selected, play/stop. </p>
  
  <p>I am using his hashing example that is on his website as well.</p>
  
  <p>If anyone has any ideas where to start or the right direction to a solution i would be grateful as i've looked at this for hours!</p>
  
  <p>Here is a link to an example of how the video is integrated into the cycle2 slider:</p>
  
  <p><a href="http://jsfiddle.net/8dcWv/" rel="nofollow">http://jsfiddle.net/8dcWv/</a></p>
  
  <pre><code>&lt;video width="100%" height="100%" controls="controls"&gt;
    &lt;source type="video/mp4" src="" /&gt;
    &lt;source type="video/webm" src="" /&gt;
    &lt;source type="video/ogg" src="" /&gt;
    &lt;object width="100%" height="100%" type="application/x-shockwave-flash" data=""&gt;
    &lt;param name="movie" value="" /&gt;
    &lt;param name="flashvars" value="controls=true&amp;file=" /&gt;
    &lt;/object&gt;
  &lt;/video&gt;
  </code></pre>
  
  <p>plugin url: <a href="http://jquery.malsup.com/cycle2/demo/video.php" rel="nofollow">http://jquery.malsup.com/cycle2/demo/video.php</a></p>
  
  <p>This url could be helpful to trigger first slide: <a href="https://github.com/malsup/cycle2/issues/25" rel="nofollow">https://github.com/malsup/cycle2/issues/25</a></p>