I have a video element in HTML
<video id="video_player" controls>
<source src="{{object.video_file.url}}" type="video/mp4">
Your browser does not support the video tag.
</video>
What I want is to check if video is played for consecutive 30 seconds irrespective of where it starts, to get a count.
How to write JavaScript for this in here
$("#video_player")[0].addEventListener('timeupdate',(e) =>{
// logic
})