Hello Pete,
My client asked me to add bitrate selector to the player. I need to know,
how can I change bitrates manually? as far as I know, React-Player change
bitrates based on bandwidth speed.
if you're using an HLS stream, once the player has loaded (onLoad event), you can use the getInternalPlayer('hls') method to get the hlsPlayer instance. Then you can access all the available levels (streams) from hlsPlayer.levels, and you can manually set the level with hlsPlayer.currentLevel = ... or hlsPlayer.nextLevel = ...
https://github.com/video-dev/hls.js/blob/master/docs/API.md#quality-switch-control-api
Most helpful comment
if you're using an HLS stream, once the player has loaded (
onLoadevent), you can use thegetInternalPlayer('hls')method to get the hlsPlayer instance. Then you can access all the available levels (streams) fromhlsPlayer.levels, and you can manually set the level withhlsPlayer.currentLevel = ...orhlsPlayer.nextLevel = ...https://github.com/video-dev/hls.js/blob/master/docs/API.md#quality-switch-control-api