Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(hls): Fixed buffering issue with live HLS #4002

Merged
merged 2 commits into from Feb 24, 2022

Commits on Feb 24, 2022

  1. fix(hls): Fixed buffering issue with live HLS

    HLS now appends segments in sequence mode. In order to handle seeks,
    we use the timestampOffset property to inform MediaSource where the
    new segment should go.
    However, we were still setting timestampOffset when the manifest was
    updated, which caused issues in live HLS; suddenly, MediaSource would
    start inserting segments near the start of the presentation, rather than
    at the live edge.
    This changes MediaSourceEngine to not apply timestampOffset during
    initialization when in sequence mode, to fix that problem.
    theodab committed Feb 24, 2022
    Copy the full SHA
    f04d314 View commit details
    Browse the repository at this point in the history
  2. refactor: Removes timestampOffset setting in HLS

    When in sequence mode, we no longer use the timestamp offset of
    segment references. So, in the HLS parser, there's no reason to
    set it anymore.
    theodab committed Feb 24, 2022
    Copy the full SHA
    a8e5f29 View commit details
    Browse the repository at this point in the history