如何获得与Vimeo的API视频播放暂停状态? [英] How to get video play paused status with Vimeo API?

查看:315
本文介绍了如何获得与Vimeo的API视频播放暂停状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道我怎么能检测如果视频在Vimeo的API播放或暂停(甚至是加载/缓冲)(的 http://player.vimeo.com/playground )这是Youtube的一个很大的不同!

I was just wondering how I can detect if the video is playing or paused (or even loaded/ buffering) on the Vimeo API (http://player.vimeo.com/playground) it's a lot different to Youtube!

推荐答案

检查首富例如使用VIMEO播放器的Javascript API的。它使用froogaloop库进行沟通VIMEO JS API。不要忘了添加ID和参数的iframe元素。

Check the richest example of using vimeo Player Javascript API. It uses froogaloop library to communicate vimeo JS API. Don't forget to add id and parameters to the iframe element.

  <iframe id="player_1" src="http://player.vimeo.com/video/7100569?api=1&amp;player_id=player_1" width="540" height="304" frameborder="0" webkitallowfullscreen></iframe>

这篇关于如何获得与Vimeo的API视频播放暂停状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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