Missing audio in first segment
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 20/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript, typescript
- Domain
- audio-video-rtc
Research direction
No source file or test is named, and the test stream link is missing. Start by reproducing the stall in the Hls.js demo, then inspect the Hls.Events.ERROR path and recoverMediaError behavior alongside the console output. Done means identifying whether the stall is caused by the stream or player behavior and documenting or implementing a confirmed resolution.
Written by the indexing model from the issue text.
Description
What version of Hls.js are you using?
v1.2.9
What browser (including version) are you using?
Chrome, Safari , FF
What OS (including version) are you using?
MacOS Ventura 13.1
Test stream
Configuration
{
"debug": true,
"enableWorker": true,
"lowLatencyMode": true,
"backBufferLength": 90
}
Additional player setup steps
No response
Checklist
- The issue observed is not already reported by searching on Github under https://github.com/video-dev/hls.js/issues
- The issue occurs in the stable client (latest release) on https://hls-js.netlify.com/demo and not just on my page
- The issue occurs in the latest client (main branch) on https://hls-js-dev.netlify.com/demo and not just on my page
- The stream has correct Access-Control-Allow-Origin headers (CORS)
- There are no network errors such as 404s in the browser console when trying to play the stream
Steps to reproduce
- open the link
- at 9s console displays Playback stalling at @9.505881 due to low buffer ({"len":0.09411899999999918,"start":0,"end":9.6}) message
- video freezes at this point
Expected behaviour
Video plays normally
What actually happened?
Click on Recover media-error button does some trick to recover the video from proceeding from this point.
If I try to recover from media error automatically I have to add setTimeout, otherwise the recovering is ignored
hls.on(Hls.Events.ERROR, function (event, data) {
if (data.type == Hls.ErrorTypes.MEDIA_ERROR) {
setTimeout(function () {
hls.recoverMediaError();
}, 10);
}
});
There are some reported issues about buffer stall errors, but I didn't find any solution how to find out why playback stalls in the first place. Can be seen from the logs if problem is in encoding or somewhere else?
Is there any elegant solution that can be done in Hls.Events.ERROR event (besides one from documentation)?
Console output
[Log] Live reload enabled. (new.html, line 921)
[Log] [log] > (hls.js, line 26312)
[Log] [log] > – "stopLoad" (hls.js, line 17823)
Chrome media internals output
No response
- Dominant language
- TypeScript
- Stars
- 16.9k
- Forks
- 2.8k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 27
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from video-dev/hls.js
-
Bug metadata Need sample stream Needs Triage
Difficulty 3/5 1-2 days Newbie friendliness 74/100
-
Bug Need info Needs Triage
Difficulty 5/5 Over a week Newbie friendliness 38/100
-
Difficulty 3/5 1-2 days Newbie friendliness 76/100
-
cannot reproduce Need info Question
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Bug Needs Triage
Difficulty 4/5 3-5 days Newbie friendliness 55/100
All issues in video-dev/hls.js
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·