You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I love this plugin but became incredibly frustrated when I was trying to tie Youtube into the workflow.
First slide is Youtube video followed by two image slides. I have Youtube events updating a variable and if the user hasn't clicked play before the sliding interval kicks in then it should act like a normal slider but if the video is playing as known by playerState then it should pause and not go to second slide.
Basically, I have tried the before() callback, which IMHO should allow one to pause the slideshow on the spot before it progresses.
I am new to building jQuery plugins but there should also be some way to interact with the slider object from outside itself so that people can pause/resume it based on other javascript events. ie so that when Youtube picks up a state change I can say flexslider.pause/resume(). I noticed the jQuery cycle plugin handles this by allowing you to basically call the flexslider function again like so maybe if it could work similar.
$('#cont').flexslider('pause');
The text was updated successfully, but these errors were encountered:
Option 1 represents the most common case for working functions into the slider. You can take your click handling logic and insert it into the start() callback of the flexslider() call. You would then be able to use the slider element.
Option 2 represents my "for now" solution for working with the slider outside of the flexslider() scope. Not the sexiest method, but it will work until I restructure the plugin to behave another way.
I love this plugin but became incredibly frustrated when I was trying to tie Youtube into the workflow.
First slide is Youtube video followed by two image slides. I have Youtube events updating a variable and if the user hasn't clicked play before the sliding interval kicks in then it should act like a normal slider but if the video is playing as known by playerState then it should pause and not go to second slide.
Basically, I have tried the before() callback, which IMHO should allow one to pause the slideshow on the spot before it progresses.
I am new to building jQuery plugins but there should also be some way to interact with the slider object from outside itself so that people can pause/resume it based on other javascript events. ie so that when Youtube picks up a state change I can say flexslider.pause/resume(). I noticed the jQuery cycle plugin handles this by allowing you to basically call the flexslider function again like so maybe if it could work similar.
The text was updated successfully, but these errors were encountered: