Sometimes a player may stall near the end of a video due to some kind of MSE related issue (gap in content for example). This change sets the player into an ended state if we're very near the end of the video and have stalled.
Specific Changes proposed
This change exposes a new option durationTolerance which is the amount of seconds near the end of the video to trigger ended. If the player is within that tolerance and it has started to stall then ended will trigger.
Requirements Checklist
[x] Feature implemented / Bug fixed
[ ] If necessary, more likely in a feature request than a bug fix
Description
Sometimes a player may stall near the end of a video due to some kind of MSE related issue (gap in content for example). This change sets the player into an
ended
state if we're very near the end of the video and have stalled.Specific Changes proposed
This change exposes a new option
durationTolerance
which is the amount of seconds near the end of the video to triggerended
. If the player is within that tolerance and it has started to stall thenended
will trigger.Requirements Checklist