views:

113

answers:

1

Hi :)

I need to stop a Vimeo video embedded with new oembed api (universal player) but when I try to add an event I get this error:

Uncaught TypeError: Object #<an HTMLIFrameElement> has no method 'addEvent'

But I don't why I get this error, I added jquery and the frogaloop api, also I added ids to the iframes, but it still doesn't work: :(

The full code is here:

http://tv.bisaccia.info

A: 

You can't.

  • There's no DOM addEvent method.
  • You don't have cross-domain access to Vimeo, so you are not permitted to have JavaScript interface with the iframe's document or abstract view.

If you wanted to interface with Vimeo via JavaScript, you would have to get them to implement a postMessage API that also accepts your domain.

Eli Grey
ah, ok :( I thinked that it worked beacuse I read it here: http://github.com/vimeo/froogaloop/blob/master/README (and here http://vimeo.com/api/docs/moogaloop#universal ) However thanks for the reply :)
patrick