Skip to content

stats.parsing.end is not set for master playlists #7518

Description

@gugaio

What version of Hls.js are you using?

v1.6.11

What browser (including version) are you using?

Versão 139.0.7258.139 (Versão oficial) (arm64)

What OS (including version) are you using?

MAC Sequoia 15.6.1

Test stream

https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8

Configuration

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

Additional player setup steps

hls.on(Hls.Events.MANIFEST_LOADED, (event, data) => {
const stats = data.stats;

if (stats && stats.parsing) {
console.log('parsing.start:', stats.parsing.start);
console.log('parsing.end:', stats.parsing.end); // Is zero to master
}
});

Checklist

Steps to reproduce

Steps to reproduce

  1. Load a master HLS manifest using Hls.js.
  2. Bind a listener to the MANIFEST_LOADED event.
  3. Inspect the stats object provided in the event callback.
  4. Observe that stats.parsing.start is set, but stats.parsing.end is zero.

Additional notes:

  • For a media playlist (level), both parsing.start and parsing.end are set as expected.
  • This behavior is consistent and occurs every time a master manifest is loaded.

Expected behaviour

Expected behaviour

  • stats.parsing.end should also be set for master playlists, just like it is for media playlists (levels).
  • This would make the parsing stats consistent and allow proper performance tracking for all types of playlists.

What actually happened?

What actually happened?

  • When loading a master playlist, stats.parsing.start is set, but stats.parsing.end remains zero.
  • For media playlists (levels), both parsing.start and parsing.end are correctly set.
  • This creates an inconsistency in the stats reporting, making it difficult to track parsing performance for master playlists.

Console output

parsing.start: 5246.0999999940395
parsing.end: 0

Chrome media internals output

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugConfirmedBug report confirmed or reproduced.

    Type

    No type

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions