It all depends on how you embed the video. I personally donβt like using the built-in embedded videos, because they load in the background, regardless of whether you see them now or later, and this affects the performance and page loading.
The recommended method, if you plan to show them in fancybox, is to call them on demand, so using this html:
<a class="video" href="pathToVideo/video.flv">open my video in fancybox</a>
use this script:
<script type="text/javascript"> $(document).ready(function(){ $("a.video").click(function() { $.fancybox({ 'padding' : 0, </script>
See an example here.
source share