DefaultTargetPreloadStatusControl

Default implementation of TargetPreloadStatusControl that manages the preload status of items based on their proximity to the currently playing item.

This implementation uses a simple distance-based strategy:

  • The item immediately before or after the current item (offset of 1) is preloaded to 1 second.

  • The items two or three positions away from the current item (offset of 2 or 3) are preloaded to 0.5 seconds.

  • All other items are not preloaded.

This strategy aims to preload content that is likely to be played soon, reducing buffering and improving playback smoothness.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard