I have code that works with Vimeo videos. It is supposed to get the exact position that the video is at, and then continue processing. To do this with the javascript API, it seems that you cannot do a simple call like "GetCurrentTime();". Instead you need to use callbacks. So you might have:
var savevalue;
froogaloop.api('getCurrentTime', function(value, player_id) {
savevalue = value;
}
I may be missing something, but if that is the only way to do it, how do I use this in the middle of a function that cannot afford to wait for a callback? In other words, Suppose my function needs to do operation A,B, and then C, where B is getting the current position, and C is using it.
Thanks,