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.

May 15, 2025 - 11:28
 0
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.