我需要直到Vimeo的视频播放结束后隐藏的div。我怎么做? [英] I need to hide a div until Vimeo video is finished. How do I do that?

查看:783
本文介绍了我需要直到Vimeo的视频播放结束后隐藏的div。我怎么做?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有了当客户想要隐藏一个div,其中包含一个表单链接Vimeo的视频,直到视频结束站点。我在Vimeo的API游乐场看到,有一个完成事件侦听器,但我从来没有与前Vimeo的混乱。我有一个jquery调用隐藏或显示其一旦完成Vimeo的事件被宣布我将运行事业部。但我怎么设置的JQuery / Javascript来侦听事件?

I have site that has a Vimeo video where the client wants to hide a div, which contains a form link, until the video has finished. I saw on the Vimeo API Playground that there is a "Finish" event listener, but I have never messed with Vimeo before. I have a jquery call to hide or show the Div which I would run once the Vimeo finish event is declared. But how do I setup JQuery/Javascript to listen for that event?

对不起,我相信这是简单的,但我是一个新手Vimeo的。我目前拥有的Vimeo的视频硬$ C $光盘插入HTML作为一个div内的iframe中。

Sorry, I am sure this is simple but I am a Vimeo novice. I currently have the Vimeo video hard coded into the HTML as an iframe within a div.

感谢你能提供任何例子。

Thanks for any examples you can provide.

推荐答案

从下载 HTTP的froogaloop框架:/ /vimeo.com/api/docs/downloads .INCLUDE在你的页面的缩小的JavaScript库,并与钩各位玩家终点事件和运行jQuery的显示/隐藏code完成事件处理中。

Download the froogaloop framework from http://vimeo.com/api/docs/downloads.Include the minified javascript library in your page and hook the finish events with you player and run the jQuery show/hide code inside the 'finish' event handler.

在这里看到一个例子
http://player.vimeo.com/playground

这篇关于我需要直到Vimeo的视频播放结束后隐藏的div。我怎么做?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆