A SkipButton's enabled state is initially set to false and it only changes to true on PROGRESS events where the seekable ranges are not empty.
This PR adds some changes to make sure SkipButtons are shown for (offline) MP4 assets too. It does this by:
Also enabling the button if the buffered ranges are not empty. On iOS you would only get a PROGRESS event at the beginning of the video, when the seekable ranges are empty.
Also enabling/disabling the button on PLAYING events, since on Android no PROGRESS events are fired in this scenario.
A
SkipButton
'senabled
state is initially set to false and it only changes to true onPROGRESS
events where theseekable
ranges are not empty.This PR adds some changes to make sure SkipButtons are shown for (offline) MP4 assets too. It does this by:
buffered
ranges are not empty. On iOS you would only get aPROGRESS
event at the beginning of the video, when theseekable
ranges are empty.PLAYING
events, since on Android noPROGRESS
events are fired in this scenario.