Hello, I'd like to use audio recorder for let teachers to add narration to some custom content type ("slides").
All file, nanogong is great, but I'd also like students to go from one slide to the next one when the narration of that slide ends.
I thought to do it with some custom PHP script using rules, but the problem is that I don't find any audio player that when the audio ends, it triggers an event.
Does it exist? Anyone would gently suggest me which alternatve approach should I look for?

Comments

gippy’s picture

Hi Sylvaticus ...

JW Player Javascript API has events that Javascript can listen for. The API says:

"onPlaylistItem(callback)
Fired when the playlist index changes to a new playlist item. This event occurs before the player begins playing the new playlist item."

On that event you can pause the playlist and call your routine for whatever.

Here is an example of an audio playlist I stream using druapl_add_js() placed in the node body.

Hope this helps.