Background throttling can cause playback delays that will recover once the document becomes visible again, so it makes sense to disable timeouts (which are in a sense "artificial" errors) if the document visibilityState is 'hidden', and then re-enable timeouts when it becomes 'visible'.
This adds an option for such a feature that defaults to true.
Description
Background throttling can cause playback delays that will recover once the document becomes visible again, so it makes sense to disable timeouts (which are in a sense "artificial" errors) if the document
visibilityState
is'hidden'
, and then re-enable timeouts when it becomes'visible'
.This adds an option for such a feature that defaults to
true
.