devcshort / react-hls

Simple React component for playing hls/rtmp live streams.
https://www.npmjs.com/package/react-hls-player
MIT License
118 stars 48 forks source link

Add the ability to access the HLS.js object that is created for the video player #23

Open mrjelveh opened 3 years ago

mrjelveh commented 3 years ago

I need to add quality switcher for this player but I really confused to how to add it, it would be great someone create an example on codesandbox.io

devcshort commented 3 years ago

hls config is basically just the configuration object that gets passed down to HLS.js (the video player this uses under the hood for video streams). All configuration options can be found here. They also provide an explanation of all their properties as well.

devcshort commented 3 years ago

I looked in to this a bit. At the moment, this isn't possible with this library. I'll need to do some updates that expose the HLS object that I create which would then give you the ability to manage the quality on your own. HLS.js automatically manages quality on it's own by default.

cgilly2fast commented 1 week ago

I also have a forked will this feature: https://github.com/cgilly2fast/react-hls