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

Allow fine-tuning hls.js configuration #31

Open
geneukum opened this issue Aug 1, 2024 · 2 comments · May be fixed by #73
Open

Allow fine-tuning hls.js configuration #31

geneukum opened this issue Aug 1, 2024 · 2 comments · May be fixed by #73

Comments

@geneukum
Copy link

geneukum commented Aug 1, 2024

hls.js accepts a bunch of different configuration parameters which can be used to fine-tune the player's performance and behaviors: https://github.com/video-dev/hls.js/blob/master/docs/API.md#fine-tuning.

hls-video-element owns the Hls instance and does not provide a way to inject additional configuration parameters: https://github.com/muxinc/media-elements/blob/main/packages/hls-video-element/hls-video-element.js#L45.

Would it be possible to add this as a feature?

@mrdoinel
Copy link

This feature would be great, especially to better control the default quality (abrEwmaDefaultEstimate)

@mrdoinel
Copy link

This is actually possible to customize the Hls default settings :

import { Hls } from 'hls-video-element'

Object.assign(Hls.DefaultConfig, {
    startLevel: -1,
    useDevicePixelRatio: true,
    capLevelToPlayerSize: true,
    abrEwmaDefaultEstimate: 500000 * 2,
    abrEwmaDefaultEstimateMax: 5000000
})

luwes added a commit to luwes/media-elements that referenced this issue Jan 10, 2025
@luwes luwes linked a pull request Jan 10, 2025 that will close this issue
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 a pull request may close this issue.

2 participants