Forum Replies Created
-
-
Hi, I did what you suggested and I did find a few errors.
1) jQuery library http://xxx.xxx/wp-content/themes/Avada/framework/plugins/LayerSlider/js/layerslider.kreaturamedia.jquery.js?ver=4.6.6 found, but unable to check version, please make sure it’s at least 1.7.1.
2) jQuery library http://xxx.xxx/wp-content/themes/Avada/framework/plugins/LayerSlider/js/jquerytransit.js?ver=0.9.9 found, but unable to check version, please make sure it’s at least 1.7.1.
It appears there are multiple jQuery libraries on your site, your videos might not be playing, please check.
wp_footer found in your template!
FV Flowplayer script found: http://xxx.xxx/wp-content/plugins/fv-wordpress-flowplayer/flowplayer/fv-flowplayer.min.js?ver=2.1.50 at line 117
jQuery library 1.7.1+ found: http://xxx.xxx/wp-includes/js/jquery/jquery.js?ver=1.10.2 at line 1214
From what I see, the jQuery library is loaded before the plugin js. So I think that should be okay but please correct me if I’m wrong. Do you have any idea on how to fix the 2 error above?
Thank you Martin for pointing it out. Please mark this thread resolved.
Another issue I ran into is:
$f(document).ready(function() {
$f(‘#post-1823.flowplayer’).flowplayer().play();
});
I get an error stating: “Uncaught TypeError: Object[object Object] has no method ‘play’.
It seems like it’s not pulling any api functions from the flowplayer at all. Any idea why? This file is in my custom_js.js file and the flowplayer javascript file was already loaded when I installed the plugin.
Just to make sure I’m on the right path,
in order to listen for the play button clicked, I should use
clip: {
onStart: function(clip) {
console.log(‘CHECKMATE!’);
}
}correct?
Also, I’m inspecting the code and I’m assuming there isn’t a play button id. How would I call for that event listener? Would it be the code I posted above or something different?
Thanks for the fast replay,
roluHi Martin,
I tried using
var api = flowplayer();$j(‘#post-{id}’).api({
clip: {
onStart: function(clip) {
console.log(‘CHECKMATE!’);
}
}
});I checked the console log and it’s throwing an error saying, “Uncaught Error: Syntax error, unrecognized expression: #post-{id}”
Any idea why it’s throwing an error like that?