Skip to content

nathancahill/video-freqtimeupdate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Video Frequent Time Update

HTML5 videos have some quality events. One of those is timeupdate: dispatched when the time indicated by the element's currentTime attribute has changed.

Unfortunately, this event frequency varies between 4Hz and 66Hz(!), so it's not very useful for building interfaces that need to be up to date with the video time.

Enter Frequent Time Update. With 100ms intervals, freqtimeupdate events are sent out continously while the video plays.

Usage

  1. Include video.freqtimeupdate.js
  2. Add an event listener on the video:
video.addEventListener('freqtimeupdate', function(e) {});

About

Frequent Time Update for HTML5 video elements

Resources

Stars

Watchers

Forks

Packages

No packages published