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

About hls js video player #6645

Open
Vitan-Vmukti opened this issue Aug 23, 2024 · 3 comments
Open

About hls js video player #6645

Vitan-Vmukti opened this issue Aug 23, 2024 · 3 comments
Labels

Comments

@Vitan-Vmukti
Copy link

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 Vitan-Vmukti added Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. Question labels Aug 23, 2024
@robwalch
Copy link
Collaborator

robwalch commented Aug 23, 2024

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

@robwalch
Copy link
Collaborator

{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 robwalch removed the Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. label Aug 23, 2024
@Vitan-Vmukti
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants