This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Synchronising audio/video and JavaScript

 
Keith Wood
Author
Ranch Hand
Posts: 38
jQuery
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rob

In HTML5 is it possible to synchronise audio or video with JavaScript actions? I have a page that drives a SVG animation from JavaScript that I want to synch with some music. But currently all I can do is start them at the same time and hope for the best.
 
Rob Crowther
author
Ranch Hand
Posts: 297
5
Android Fedora Firefox Browser
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The solution for this will be Timed Tracks, though that's not yet fully supported by browsers. Here's a more readable introduction. It allows you to have a file containing a list of timed cues which then fire events in the browser which you can use to trigger other actions on the page.
 
Keith Wood
Author
Ranch Hand
Posts: 38
jQuery
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, that looks useful. It's a pity it isn't more widely supported yet.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic