Skip to content

Buffer hole on level switch (Chrome) #5631

Closed
@tvinko

Description

@tvinko

What version of Hls.js are you using?

1.4.7

What browser (including version) are you using?

Chrome v114.0.5735.198 (Official Build) (arm64)

What OS (including version) are you using?

MacOS

Test stream

https://hlsjs.video-dev.org/demo/?src=https%3A%2F%2Fvz-ced6ec5f-c54.b-cdn.net%2F55d2cc15-6524-48f7-aa7f-677d41d17eb2%2Fplaylist.m3u8&demoConfig=eyJlbmFibGVTdHJlYW1pbmciOnRydWUsImF1dG9SZWNvdmVyRXJyb3IiOnRydWUsInN0b3BPblN0YWxsIjpmYWxzZSwiZHVtcGZNUDQiOmZhbHNlLCJsZXZlbENhcHBpbmciOi0xLCJsaW1pdE1ldHJpY3MiOi0xfQ==

Configuration

{
  "debug": true,
  "enableWorker": true,
  "lowLatencyMode": true,
  "backBufferLength": 90,
  "maxStarvationDelay": 4
}

Additional player setup steps

No response

Checklist

Steps to reproduce

  1. Play the stream
  2. Video freezes for few seconds when level is switched

Expected behaviour

Video doesn't switch on resolution change

What actually happened?

Problem occured only on Chrome. Safari and Firefox are not experiencing this issue.

There is a buffer hole for some reason that starts on 3.921333 second of the video and ends on 3.988
Buffer state:
Duration: 9.215999
Buffered: [0.021333, 3.921333] [3.988, 9.215999]
Seekable: [0, 9.215999]
Played: [0, 9.215999]
Buffer for audio contains:[0, 9.215999]
Buffer for video contains:[0.021333, 3.921333] [3.988, 9.187999]
Dropped frames: 0
Corrupted frames: 0
TTFB Estimate: 5.000
Bandwidth Estimate: 32859297.994

Console output

7.655 | Buffer stalled error

Chrome media internals output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      Top priorities

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions