Topic: How to find the status of AutoPlay
Hi,
I'm wondering whether AutoPlay is currently playing.
I've writing a jquery viewer that supports 3 modes: video, slideshow and virtual tours. Separate Divs hold each of the 3 media modes that are visible or hidden based on menu selections that the user clicks at the top of the screen.
My goal is to initially turn on autoplay when the users selects slideshow, but pauses the slideshow at the current slide if the user changes to another media mode, say, video.
Is there a way for me to know the state of autoplay? I have found your toggleAutoPlay function but need to know the current status of Autoplay in order to call toggleAutoPlay properly. Otherwise, if autoplay is not playing when I make the call, the slideshow will advance while another mode is playing.
In the debugger, I see that div.jb-bb-button.jb-bb-btn-autoplay.jb-status-playing is active when autoplay is playing. Must I query this in jquery to find out whether the slideshow is playing or is their an easier way to accomplish this? Once I know the status, then I can correctly call toggleAutoPlay.
Thanks,
<gary>