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
Open

Allow fine-tuning hls.js configuration #31

geneukum opened this issue Aug 1, 2024 · 2 comments

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
})

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

No branches or pull requests

2 participants