Vimeo的API自动暂停在一定的时间 [英] Vimeo API Auto-pause at certain time

查看:113
本文介绍了Vimeo的API自动暂停在一定的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如果VIMEO一个JavaScript API允许将视频自动 - 暂停在播放某一点(如视频已播放55秒后) - 然后等待用户点击视频继续播放。

I am wondering if vimeo a JavaScript API allows for the video to auto - pause at a certain point in playback ( eg after the video has been playing for 55 seconds)- and then wait for the user to click on the video to resume playback.

因为我很新的JavaScript以任何帮助将是巨大的。

Any help would be great as I am very new to JavaScript.

下面是VIMEO JS网站: http://developer.vimeo.com/player/js -API

Here is the vimeo js website: http://developer.vimeo.com/player/js-api

谢谢 -

推荐答案

使用嵌入式Flash播放器,这样的事情应该工作:

Using the embedded Flash player, something like this should work:

document.getElementById('vimeo_player').api_addEventListener('play', function(event) {
    window.setTimeout('document.getElementById("vimeo_player").pause()', 55000);
})

这篇关于Vimeo的API自动暂停在一定的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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