Currently, I’m using hls js in my react application, but I’m having trouble getting levels and qualities from the manifest
Actually, Hls.Events.MANIFEST_PARSED does not fire in Android browsers. On PC, it works fine; however, this issue only occurs in Android browsers. this is part of my code .
const newHls = new Hls({
enableWorker: false,
...hlsConfig,
});
newHls.once(Hls.Events.MANIFEST_PARSED, (event, data) => {
if (autoPlay) {
setIsPlaying(true)
playerRef?.current
?.play()
.catch((e: any) => {
console.log(e)
setIsPlaying(false)
}
});