Fancybox iframe autoplay for Vimeo

3,842 views
Skip to first unread message

SumKungFuDude

unread,
Mar 30, 2012, 12:39:21 PM3/30/12
to fancybox
Hello:

I am trying to get a vimeo video to play automatically on popup. The
below is my code, and it is not working. Please any help with this
matter would be much appreciated. Thank you.

<script type="text/javascript">
$(function () {
$(".iframe").fancybox({
autoplay: 1
});
});
</script>
<ul>
foreach(var video in mainVideos)
{
<li><a href="@video.videoUrl" class="iframe"></li>
}
</ul>


Sincerely,

Jeff

JFK

unread,
Mar 30, 2012, 11:45:58 PM3/30/12
to fancybox
fancybox doesn't have anything to do with autoplay, you should pass
the parameter within the URL like
http://player.vimeo.com/video/VIDEO_ID?autoplay=1

check the documentation
http://vimeo.com/api/docs/player
Reply all
Reply to author
Forward
0 new messages