vimeo/froogaloop — Issue #6: Froogaloop + Jquery + Wordpress
Author: pr1ntr
Created: 2012-01-21 02:12:46+00:00
State: open

I have been trying to get this froogaloop lib to work in my WP site using jquery. I have seen examples on stackoverflow where they claims this works but I can't get it working for the life of me.

some background:
I am using flexslider in my WP page to slide through images and videos, then i detect whether or not the current slide is a video (if it is an iframe) and proceed to using froogaloop to send a 'pause' command to the video when the slide changes over.

some code:
http://pastie.org/3222513

I also changed the $f in the froogaloop.min.js to froog just in case the $ was conflicting with WP.

whenevr i initialize froog(jQuery(etc.. )) i get this as an output:

e.fn.e.init
>element: HTMLIFrameElement
>__proto__: Object

if I add api('pause') the same thing happens. I am really at the end of my rope.. I am not sure how to handle this. I dont know if i need to listening for ready event (hasn't worked for me anyways) or what. There have been stackoverlfow posts that people actually have done it the way i outlined.

Any help would appreciated. Thanks.