Skip to content

Conversation

@robwalch
Copy link
Collaborator

@robwalch robwalch commented Jan 20, 2026

This PR will...

  • Do not flush audio back buffer when there is no previously buffered fragment
  • Trigger initial LEVEL_SWITCHED events for first playing fragment detected
  • Minor changes to functional tests to improve logging and stability on slower-running CI platforms

Why is this Pull Request needed?

Audio back buffer removal was being triggered on start, and LEVEL_SWITCHED was not, since #7575.

Are there any points in the code the reviewer needs to double check?

The "smooth switch" automated test has been flaky since #7575 was merged. I noticed that one of the failures was related to the switch happening on start, but the event not being logged by the test.

Resolves issues:

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

@robwalch robwalch force-pushed the bugfix/audio-buffer-flush-on-start-regression branch from 97f5e60 to cad5793 Compare January 21, 2026 00:22
@robwalch robwalch merged commit d9b30b1 into master Jan 21, 2026
16 checks passed
@robwalch robwalch deleted the bugfix/audio-buffer-flush-on-start-regression branch January 21, 2026 02:49
@github-project-automation github-project-automation bot moved this from Top priorities to Done in HLS.js Release Planning and Backlog Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants