Tiny JavaScript library to synchronize <video>
elements to a common BPM.
-
Include
src/vidsync.js
in your HTML page. -
Add this to your JavaScript:
var vidsync = new VidSync(".video-element-selector", bpm, beatsPerBar); vidsync.run();
-
All videos with the class
.video-element-selector
will be synchronized to the desired BPM. -
For an example application, check out
examples/tiles/index.html
.
NB. Due to browser limitations, too high or low a playback rate might not work as intended.