This little experiment explores how to sync playback of 2 online videos using the following logic:
- Primary video used for audio (secondary video is muted)
- Combined play / pause / progress / seek events
- Offset threshold for synching by slowing down or speeding up the secondary video (default = 0.2 sec)
- Offset threshold for synching by seeking the secondary video to the primary video time (default = 2 sec)
Happy - Pharrell Williams |
Demo 2 - Click link to view
More and More - Captain Hollywood Project |
Code is available on Github.
No comments:
Post a Comment