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

Added video quality feature #43

Merged
merged 7 commits into from
Feb 6, 2024
Merged

Added video quality feature #43

merged 7 commits into from
Feb 6, 2024

Conversation

Carbrex
Copy link
Contributor

@Carbrex Carbrex commented Feb 5, 2024

May close #41
I have tried adding the quality change feature, it works but with a delay as it waits for the current segment to finish playing. Please check it out and suggest changes.
I also found some repositories related to this. https://github.com/sahilkashyap64/hls and https://github.com/kmoskwiak/videojs-resolution-switcher but they require some more dependencies.

static/playHLSVideo.js Outdated Show resolved Hide resolved
static/playHLSVideo.js Outdated Show resolved Hide resolved
@sigaloid
Copy link
Member

sigaloid commented Feb 5, 2024

This looks great so far! A couple of suggestions with the bitrate there. That being said, I think long-term it would be better to switch to something like dash.js - this is a good stopgap but if you're proficient with JS and want to try your hand, could be a good thing to work on. I'll open an issue for that but we can go forward with this for now

Carbrex and others added 2 commits February 6, 2024 13:10
Co-authored-by: Matthew Esposito <[email protected]>
Co-authored-by: Matthew Esposito <[email protected]>
@Carbrex
Copy link
Contributor Author

Carbrex commented Feb 6, 2024

How do I add it into settings to set a default preference for video quality?

static/playHLSVideo.js Outdated Show resolved Hide resolved
@sigaloid
Copy link
Member

sigaloid commented Feb 6, 2024

Added some slight styling:
image
Placed it on the right as that's typically where video quality options are. Anyway, other than this, I think it's ready to go in

@sigaloid sigaloid merged commit c603006 into redlib-org:main Feb 6, 2024
3 checks passed
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.

✨ Feature parity: Ability to change video quality
2 participants