forked from pion/mediadevices
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tolerate video frame rate variation in properties detector (pion#261)
Changes: * Add argument to tolerate some FPS variations. * Update wrapper function. * Update tests. * Add test about frame rate change tolerance. * Verify the onChange function is not called when the frame rate change is within the the specified tolerance. * Update test about frame rate variation detection * Create dedicated throttle transform function to slow down after a specific amount of time. * Remove unnecessary code.
- Loading branch information
Showing
3 changed files
with
59 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters