video-dev / video-dev/hls.js

Hold playback until initial buffer length

Open
#7,647 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

answered Enhancement Question Revisit-at-later-release-cycle
Dominant language
TypeScript
Stars
16.9k
Forks
2.8k
Avg merge
1d 12h
Merged PRs (30d)
27

Description

What do you want to do with Hls.js?

Is it possible to adjust the initial buffer length to start the video?
We have the first two chanks that are 2 seconds long, and sometimes there is a problem on a weak network that the video starts, but there is not enough buffer, and after 4 seconds of playback, a loader appears.
would like to wait a little longer at the first download, but not get a playback freeze.

What have you tried so far?

No response

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.

Research direction

Start by reviewing Hls.js's existing startup buffering and playback behavior, then reproduce the weak-network case with two-second initial chunks. The issue is done when playback waits for a larger initial buffer and no loader appears after roughly four seconds of playback.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
audio-video-rtc
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.