Skip to content

Conversation

@masaball
Copy link
Contributor

Related issue: #6635

The root cause of the behavior was a race condition where the first load would sometimes take long enough for the m3u8 reload initialization to be triggered twice or more. This resulted in multiple event listeners, each creating a reload interval when pausing playback. However, these intervals were being set to the same variable so when playback was resumed the interval removal would only remove the most recently created interval. Using a flag specific to the reload being added to the page should fix the behavior.

Related issue: #6635

The root cause of the behavior was a race condition where the first load
would sometimes take long enough for the m3u8 reload initialization to
be triggered twice or more. This resulted in multiple event listeners,
each creating a reload interval when pausing playback. However, these
intervals were being set to the same variable so when playback was
resumed the interval removal would only remove the most recently created
interval. Using a flag specific to the reload being added to the page
should fix the behavior.
Copy link
Contributor

@Dananji Dananji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants