Do not really need an event listener for the audio play/pause function as it should be possible to bind the user click from one to the other. I do this already on my website with much older code than this -- so it must be possible with jQuery surely.
i.e. User clicks the start/stop/pause button on the slideshow and jQuery binds the click to a 2nd function (in the audio player script).
That is relatively easy.
The problem, as always, is the looping.
This is a requested feature on my website and its seems to me that everyone says its impossible -- when it clearly is not. There are multiple ways to achieve this.
As a someone who is not a programmer it will take me a long time to work out the code to avoid conflicts -- but surely an action can be fired based on stop/end/timeline that navigates the images to slide 1 (this is easy) and starts playing the loaded the audio again.
Are you saying its not possible just with this program? or are you saying it cannot be done -- because for sure it is possible -- but as yet noone out there has actually had the courage/brains/motivation to do it. Yet the market is there!
Here is an example of a slideshow that links with jplayer -- and fires actions according to a timeline that is automatically calculated from the audio file:
For some reason the developers of this have removed some of the controls from jplayer (volume and mute) along with the loop function. Yet the use of a timeline means looping is a simple callback at T-1 second!
Last edited by poompah (2012-09-27 15:54:15)