0

我想在 iframe 视频播放结束时隐藏 iframe 并显示图像缩略图。但是 Vimeo 播放器 api 事件都没有工作。有谁能够帮我?这是我的代码:

小提琴

$("#video .playBtnOrangeMid").click(function(){
        $(this).hide();
        $("#video1").attr("src","http://player.vimeo.com/video/69185765?color=de641b&autoplay=1&api=1&player_id=video1");
        $("#video").css("background","none");
            var iframe = $('#video1')[0],
            player = $f(iframe);
            player.addEvent('ready', function() {
                player.addEvent('finish', function(){
                    $("#video .playBtnOrangeMid").show();
                    $("#video1").attr("src","");
                    $("#video").css("background","url(../images/thumb1.png)");
                });
            });
        });
4

0 回答 0