1

I need a plugin for JavaScript/jQuery that handles playing audio, but I also need to be able to make my code trigger when it gets to a certain duration (eg. when the song hits 1:06, it displays an alert).

Is this possible? Thanks!

8
  • have you tried the .setTimeout() function? Jul 16, 2012 at 13:08
  • I don't believe this is possible. Part of the reason may be that you need to consider all the variations -- what if the user scrubs the playback through 1:06? What if he skips ahead of it? What if the music is paused for thirty seconds before reaching that point? Jul 16, 2012 at 13:08
  • 2
    This might answers your question: stackoverflow.com/questions/4993097/…
    – nuala
    Jul 16, 2012 at 13:08
  • @HunterMcMillen Just thought of that now.
    – user775171
    Jul 16, 2012 at 13:09
  • 4
    Background music with no controls for the user to pause or skip? Shame on you. There's a reason we let MySpace die a slow and painful death. Jul 16, 2012 at 13:10

1 Answer 1

2

I am not sure if this is what you want but its worth taking a look...http://popcornjs.org/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.