Bronius Motekaitis

Bronius Motekaitis

Using a Drupal contrib module video_embed_field, I am layering the complexity on my end and am not sure where to strike. I am also getting Chrome's "Unsafe JavaScript attempt to access frame with URL ..." message and am unsure whether this is because of the API calls or just the nature of things.

Can someone post a super simple, no froog example that sets a console.log('API loaded, movie playing") kind of a message?

Bronius Motekaitis

Bronius Motekaitis

Still would be good to hear a response from someone on this, but having gotten my local code in order, I did want to round back with the following observations for anyone following:
* Chrome's Unsafe Javascript message will continue to show when domains mismatch-- doesn't appear to affect API interaction, and you can safely ignore this message during development
* If you hit the "SyntaxError: DOM Exception 12" message when calling .postMessage, for me it turned out url, defined by url = f.attr('src').split('?')[0] in the example provided by Vimeo, was "//example.vimeo.url" and lacked the http as in "example.vimeo.url";. I prepended "http", and it worked!

Vimeo's example code:
developer.vimeo.com/player/js-api#universal-with-postmessage

Link: developer.vimeo.com/player/js-api#universal-with-postmessage

This conversation is missing your voice. Please join Vimeo or log in.