Skip to content

Add support for upstream discard to HLS #6322

@stevemayhew

Description

@stevemayhew

Use case description

It is undesirable to leave poor quality buffered video samples in place when sufficient higher quality samples exist to replace them.

Two cases this can happen:

  1. Adaptation in live playlists can leave substantial low quality data buffered, particularly in the channel change case where low bit rate initial selection facilitates rapid channel change.
  2. When switching from trick-play (low frame rate) tracks to regular frame rate.

Proposed solution

Implement the existing SequenceableLoader#reevaluateBuffer() method in library-hls.

The work on this is in a pending pull request #6321

Alternatives considered

Using a separate SampleStreamWrapper and TrackGroup for the trick-play tracks. The more elegant solution of including these tracks with the balance of the adaptation set necessitates this.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions