Yes, the easiest way is to use the new vimeo " universal player " to embed your videos.
Follow these steps:
A). On the vimeo page, select one of your videos, then select the " embed " icon (above the video).
IN). Get the iframe code that looks like this:
<iframe src="http://player.vimeo.com/video/34792993?title=0&byline=0&portrait=0" width="400" height="225" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
FROM). Extract the contents of the src attribute and set it as the href your link, for example:
<a class="vimeo" href="http://player.vimeo.com/video/34792993?title=0&byline=0&portrait=0">open vimeo in fancybox</a>
D) Your fancybox (v2.x) script user interface should look like this:
<script type="text/javascript"> $(document).ready(function() { $(".vimeo").fancybox({ width: 400, height: 225, type: 'iframe', fitToView : false }); }); </script>
Notification I got width and height from iframe code.
UPDATE (June 25, 2013): Another simple and easy way to watch vimeo videos in fancybox (v2.1.5, as it is today) uses fancybox media assistants. Learn more about fooobar.com/questions/1392933 / ....
source share