A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion
I'm trying to track a "heatmap" of what parts a video is viewed. I would like to track when a user seeks in a video, where the seek left and where it is going. Currently, I'm able to get the "destination": that's the seconds parameter in (property) onSeek?: ((seconds: number) => void) | undefined.
My current solution is to set a buffer of frames in the past:
I'm trying to track a "heatmap" of what parts a video is viewed. I would like to track when a user seeks in a video, where the seek left and where it is going. Currently, I'm able to get the "destination": that's the
seconds
parameter in(property) onSeek?: ((seconds: number) => void) | undefined
.My current solution is to set a buffer of frames in the past:
But, the solution is incredibly hacky. What is the best way to get source time? Thanks!