Missing audio in first segment

Open
#5,132 9 comments 0 reactions 0 assignees View on GitHub

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

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

Bug Error Reporting Missing Feature MSE sourcebuffer-track-mismatch Stream Issue
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
Steps to reproduce
  1. open the link
  2. at 9s console displays Playback stalling at @9.505881 due to low buffer ({"len":0.09411899999999918,"start":0,"end":9.6}) message
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from video-dev/hls.js

All issues in video-dev/hls.js

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.