I'm having an issue which has been bugging me for the past few days. I (at least I think so) implemented Fancybox correctly, and it works perfectly with images. However whenever I try to open a video with Fancybox it opens up the fancybox style loading screen, but does not play the video itself. It just keeps loading for about a minute and then displays: "The file or directory could not be found". Like this. My code is like this:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/jquery.fancybox.css">
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/jquery.fancybox.js"></script>
<script src="js/jquery.fancybox-media.js"></script>
</head>
<body>
<script type="text/javascript">
$(document).ready(function() {
$(".fancybox-media").fancybox({
helpers : {
media : {}
}
});
});
</script>
<a class="fancybox-media" href="http://vimeo.com/36031564">Vimeo</a>
</body>
I'm 100% sure I'm pointing to the right path for the js and css, to the newest versions. What am I missing here? Why doesn't this just work, just like the pictures?