Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add loaders and other modules used in config to ESM output #6733

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Oct 1, 2024

This PR will...

  • Export FetchLoader, fetchSupported, XhrLoader, Cues, SubtitleStreamController, requestMediaKeySystemAccess in ESM output (hls.mjs)
  • Fix: Disable progressive callbacks in fLoader when progressive mode is disabled Resolves FetchLoader export #6707

Why is this Pull Request needed?

Allows config options fLoader, pLoader, and loader to be set to imported Loader class, or a custom loader sub-class.

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

Fixes a bug with setting fLoader to FetchLoader with default progressive: false: data was empty on complete and onProgress was a no-op. Now onProgress no-op is not passed in to fLoader when not in progressive mode so that the correct more direct path is taken to returning data on complete.

Resolves issues:

Resolves #6707

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

…ntroller, requestMediaKeySystemAccess in ESM output (hls.mjs)

Fix: Disable progressive callbacks in fLoader when progressive mode is disabled
Resolves #6707
@robwalch robwalch added this to the 1.6.0 milestone Oct 1, 2024
@robwalch robwalch mentioned this pull request Oct 1, 2024
@robwalch robwalch merged commit 063bf07 into master Oct 2, 2024
16 checks passed
@robwalch robwalch deleted the bugfix/export-loaders-floader-fix branch October 2, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FetchLoader export
1 participant