문제

I am looking to get the current time from a player, I have the video pausing with this

$('#add').click(function() {
var player;
player=$f(document.getElementById('vimeoPlayer'));
player.api('pause');
});

but when I try to add

player.api('getCurrentTime', function(value) {
alert('yes');
});

I get nothing, any ideas?

도움이 되었습니까?

해결책

I think this example I made up will help you understand how the Vimeo API works: http://labs.funkhausdesign.com/examples/vimeo/froogaloop2-api-basics.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top