hls.js icon indicating copy to clipboard operation
hls.js copied to clipboard

About hls js video player

Open Vitan-Vmukti opened this issue 1 year ago • 3 comments

What do you want to do with Hls.js?

I want to use hls js video player to run my camera url to run on video player and with specific task that if ii extract feed of my which may have drop packet or chunks i want to skip it and run continuously

What have you tried so far?

I try it with hls js but I got fatal error: Non-fatal error occurred: {type: 'otherError', details: 'levelSwitchError', level: 1, fatal: false, error: Error: invalid level idx at set level (http://localhost:3000/static/js/bundle.js:66781:21) …, …}

So I need solution or way to do so I can do accordingly

Vitan-Vmukti avatar Aug 23 '24 11:08 Vitan-Vmukti

"levelSwitchError" is caused by incorrect API usage, attempting set hls.currentLevel or hls.nextLoadLevel to an index outside the range of hls.levels.

robwalch avatar Aug 23 '24 16:08 robwalch

{type: 'otherError', details: 'levelSwitchError', level: 1, fatal: false, error: Error: invalid level idx }

"levelSwitchError" is only fatal when the event level is -1 and fatal is true. This would be be the result of earlier level removal. Non-fatal errors do not interrupt streaming.

If you are not seeing continuous playback, something else may be going wrong related to your HLS stream. Try running HLS Tools mediastreamvalidator for error or comment with full debug logs from hls.js to give us a better picture of what the problem could be.

robwalch avatar Aug 23 '24 16:08 robwalch

Ok let me give you the idea, Basically I have a url of hls stream so sometimes I am getting some chunks in between which gives a buffer or white screen so I want to skip those chunks so that I can play that video seamlessly

Vitan-Vmukti avatar Aug 28 '24 12:08 Vitan-Vmukti