question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HLS starts at 10s

See original GitHub issue

Have you read the FAQ and checked for duplicate open issues? Yes

What version of Shaka Player are you using?

  • Shaka: 2.4.6, 2.4.5, and 2.3.3.
  • Our custom app combines Shaka v2.3.3 + mux.js v5.0.1. We are trying to update to Shaka >= v2.4.6 + mux.js v5.0.1.

Can you reproduce the issue with our latest release version? Yes

Can you reproduce the issue with the latest code from master? No, I honestly have not tried.

Are you using the demo app or your own custom app? Demo and custom app.

If custom app, can you reproduce the issue using our demo app? Yes

What browser and OS are you using? Chrome 72, macOS 10.14.1

For embedded devices (smart TVs, etc.), what model and firmware version are you using? n/a

What are the manifest and license server URIs?

What did you do?

  • Load the 2.4.6 demo directly to the manifest above
    • Maximum small gap size: should be default 0.5
    • Jump large gaps is unchecked

What did you expect to happen?

Playback should begin at 0s. In our app, v2.3.3 + mux.js v5.0.1 play the stream from start time 0 without manifest.defaultPresentationDelay nor manifest.hls.defaultTimeOffset values. I believe there is a behavior change between 2.3.3 and 2.4.5 that I haven’t been able to identify.

What actually happened?

  • Stream jumps forwards to ~10s.
  • Log displays Jumping forward 0.1154080000000004 seconds because of gap starting at 11.862333 and ending at 11.947666

Our upgrade to 2.4.5 and 2.4.6 both demonstrate that stream playback now starts at ~10s. The delay smells like a pre-roll presentation delay of some sort. It did not occur in 2.3.3.

These issues describe a 10s skip at start: #1625, #1011. The combined configuration workaround (shown below) doesn’t change behavior.

this._shaka.configure({
  manifest: {
    // #1625
    defaultPresentationDelay: 0,
    hls: {
      // #1011
      defaultTimeOffset: 0
    }
  },
  streaming: {
    bufferingGoal: this.props.bufferingGoal,
    jumpLargeGaps: true,
    retryParameters: {
      maxAttempts: Infinity
    }
  },
  abr: {
    defaultBandwidthEstimate: this.props.defaultBandwidthEstimate
  }
});

kapture 2019-02-05 at 14 57 00

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
joeyparrishcommented, Feb 20, 2019

Fix released in v2.4.7.

1reaction
joeyparrishcommented, Feb 19, 2019

Hi, @mseeley. I’m working on it today. We’re a bit behind on everything, which is hard to tell since I haven’t published a timeline or roadmap yet. That’s coming soon, too, though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HLS starts at 10s · Issue #1793 · shaka-project/shaka-player · GitHub
Our upgrade to 2.4.5 and 2.4.6 both demonstrate that stream playback now starts at ~10s. The delay smells like a pre-roll presentation delay...
Read more >
HLS Latency Sucks, But Here's How to Fix It (Update) - Wowza
The default value is ten, but for reduced-latency streaming, we recommend storing 50 seconds of chunks. For one-second chunks, set the ...
Read more >
HLS start delay vs. RTP/RTSP Live … | Apple Developer Forums
I have to improve the start delay of a live hls stream. ... (...that 10s are available when 10s in realTime pass... )...
Read more >
draft-pantos-hls-rfc8216bis-12 - IETF Datatracker
Each WebVTT Segment MUST either start with a WebVTT header or have an EXT-X-MAP tag applied to it. In order to synchronize timestamps...
Read more >
hls.js demo
Playback Timeline Quality-levels. Audio-tracks. Real-time metrics. Buffer & Statistics. Play Pause Playback rate - 10 s + 10 s. Seek to. Start loading...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found