The way the player is designed there is a sort of circular dependency when we read the time and then update the player. To break this loop we make sure to update currentTime only if a new value is present. This works well on all browser except safari that get value almost identical. The delta is sub millisecond.
The way the player is designed there is a sort of circular dependency when we read the time and then update the player. To break this loop we make sure to update currentTime only if a new value is present. This works well on all browser except safari that get value almost identical. The delta is sub millisecond.
This PR fix the issue mentionned https://github.com/nkoehler/mat-video/issues/37 by only updating the time if we moved by more than a tenth of a millisecond