Video slideshow

Just got this working adding a text metabox for the youtube id.

Then added this lines before the link in the slider just below the opening tag:

<?php  
 if ( get_post_meta( get_the_id(), 'video', true) != '' )
    { 
  $video= get_post_meta( get_the_id(), 'video', true);  
?>

Here goes the embed code but we replace with <?php echo $video;?> in every place where the ID of the video is.

Like this

<object width="760" height="427.5">
<param name="movie" value="https://www.youtube.com/v/<?php echo $video;?>?controls=0&start=4&modestbranding=1&rel=0&showinfo=0&theme=light&version=3"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowScriptAccess" value="always"></param>
<embed src="https://www.youtube.com/v/<?php echo $video;?>?controls=0&start=4&modestbranding=1&rel=0&showinfo=0&theme=light&version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="760" height="427.5"></embed>
</object>

I had to add the instead the iframe because it closed all my tags and everything broke.

Hope this helps someone.