MKPTweaksConfiguration

class MKPTweaksConfiguration: MKConfiguration

This configuration is used as an incubator for experimental features. Tweaks are not officially supported and are not guaranteed to be stable, i.e. their naming, functionality and API can change at any time within the tweaks or when being promoted to an official feature and moved into its final configuration namespace.

Fields

Name Description
var bandwidthEstimateWeightLimit: Int

Get/Set the current weight limit used for calculation. Constantly aggregated and weighted bandwidth samples are summed up to this weight limit to calculate an bandwidth estimation. Remaining samples (i.e. that would lead to exceeding the limit) are dropped from memory as they are not relevant anymore.

Default is 2000

var languagePropertyNormalization: Boolean

Get/Set the current language property Specifies if the language property on DASH Representations, HLS Renditions and SmoothStreaming QualityLevels is normalized. If enabled, language properties are normalized to IETF BCP 47 language tags. Examples: - "ENG" is normalized to "en" - "en_us" is normalized to "en-us" - "en-US-x-lvariant-POSIX" is normalized to "en-us-posix".

Default is true

var localDynamicDashWindowUpdateInterval: Double?

Get/Set The interval in which dynamic DASH windows are updated locally. I.e. The rate by which the playback window is moved forward on the timeline.

Defaults are 5 seconds for regular live streams and 0.1 seconds for low latency streams.

var useFiletypeExtractorFallbackForHls: Boolean

Gets the Fallback status Specifies if the player should always fall back to an extractor matching the file type, if no matching extractor was found. If the fallback is applied, this will ignore potential incompatibilities with streams and thus can result in unstable or failing playback.

Default is false

var exoPlayerCache: Cache?

A cache instance that is used by the player in read-only mode. Ignored when playing back class OfflineSourceItems. NOTE: This property will be removed, once pre-caching is fully supported within the Player SDK. TODO Remove support when player is ready.

var timeChangedInterval: Double

Get the frequency in seconds interface OnMKTimeChangedListener will fire class MKPTimeChangedEvent. Default is 0.2.

Constructors

<init>

constructor(bandwidthEstimateWeightLimit: Int, exoPlayerCache: Cache?, languagePropertyNormalization: Boolean, localDynamicDashWindowUpdateInterval: Double?, timeChangedInterval: Double, useFiletypeExtractorFallbackForHls: Boolean)

Parameters

Name Description
bandwidthEstimateWeightLimit: Int

Refer above explanation

exoPlayerCache: Cache?

Refer above explanation

languagePropertyNormalization: Boolean

Refer above explanation

localDynamicDashWindowUpdateInterval: Double?

Refer above explanation

timeChangedInterval: Double

Refer above explanation

useFiletypeExtractorFallbackForHls: Boolean

Refer above explanation