object PlayWhenReadyTogglingDetected : InstreamState
The PlayWhenReadyTogglingDetected
state will be set active when PlayWhenReady(false) is
received directly after PlyWhenReady(true), but the state is still at ShowingAdPaused. This
is the case, when playWhenReady is toggled very fast (below 100ms). Unfortunately this short
toggle initiates an endless toggling of the current playWhenReady state. Such short
playWhenReady toggles occur on the FireTV4k Stick for example, when the stick is put into
standby mode while the app has some ad playback active. In this case onPause() is called
within 100ms after onResume(). Because we set our playWhenReady property in these callbacks,
the standby mode of the FireTV4k will initiate endless toggling of the playback state.
When the PlayWhenReadyTogglingDetected
state is active, all incoming events will be ignored,
After approx 500ms the state is set to the previous state of PlayWhenReadyTogglingDetected
to ensure, playback state toggling does not start and the video can be resumed without any
problems.