Skip to content

Make cache thresholds customizable

Created by: epiclabsDASH

See discussion in #1992 (closed).

Allow the user to define its own thresholds for the cache detection mechanism. This threshold is used by the ABR algorithm to detect when the response to a request is coming from browser cache.

After lot of empirical tests trying to find optimum values for cache load thresholds, I didn't find ones that behave better than the ones currently defined (they highly depends on the bitrate of the video/audio and the cpu/gpu of the device). So, this PR is keeping default values as they are and is adding a new method to MediaPlayer (setCacheLoadThresholdForType) that allows to change them.

Merge request reports