Anyone familiar with Vimeo? Is the problem with js_onLoad broken?

Hi everyone, I tried to get the vimeo example "swfobject.html" from the git hub to work, but it just doesn't work @ github.com / vimeo / vimeo-api-examples / blob / master / moogaloop-api / JavaScript / swfobject.html

I debugged a bit and realized that it is not even included in the "js_onLoad" function. Does anyone know if this code is github or js_onLoad deprecated? I'm just trying to make a simple example of displaying a “hi” warning after loading the player, but I can't even go that far.

My very simple code example is here: http://pastie.org/1110855 . Does anyone see a problem?

Any stackoverflowers that understand the Vimeo JS API? Greetings

+3
source share
3 answers

I feel your pain. There is tons of inconsistent information about the Vimeo API. But there are still parts that work. Check out the API Playground , which works and demonstrates how to do all kinds of useful things. Source code on github . You can split the playground.html file and just leave it in the parts you need.

An important warning about the playground.html file is that it does not work (for me) when I run the file: /// URL. It must go off the http server to work in general. NTN.

0
source
0

After several experiments, it seems that events are fired only with the HTML5 embed version, and not with the Flash version.

Since Universal Embed (iframe) code automatically selects the technology, I believe that the best way to avoid is to use it and make your own inline.

0
source

Source: https://habr.com/ru/post/1761193/


All Articles