How YouTube Might Track “Most Replayed” Parts of a Video — in Ruby on Rails
Have you ever noticed the spiky graph above the YouTube timeline showing "Most Replayed" sections? In this post, we’ll build a simplified version of that system using Ruby on Rails — to track, store, and visualize which parts of a video are being re-watched the most.

Have you ever noticed the spiky graph above the YouTube timeline showing "Most Replayed" sections?
In this post, we’ll build a simplified version of that system using Ruby on Rails — to track, store, and visualize which parts of a video are being re-watched the most.