This should work. Vimeo have a API that you can hook into to control embedded videos.
1, Add to your head file a link to the vimeo API js.
2, Once you have the embed code, you need to enable the API.
It is suggested that you do this by adding ?api=1 to the end of the video src URL.
But I found that it works without doing that so try it without first ( in all browsers)
I will assume that you have embedded the embed code into a Rectangle Element's innerTML..
Give the Rectangle an ID. Mine is 'videoRectangle.'
var videoRectangle = hypeDocument.getElementById('videoRectangle')
var iframe = videoRectangle.childNodes;
var player = $f(iframe);
That should be it
playVimeoControl_API.hype.zip (12.6 KB)