MKPSourceOptions

class MKPSourceOptions: Any

SourceOptions to set as part of SourceItem. Example usage snippet :


this.sourceConfiguration = MKPSourceConfiguration(sourceConfig, analyticsConfig)
val tmpstartOffsetMKTimelineReference: MKTimelineReferencePoint = if(sourceConfig.isLive == true) MKTimelineReferencePoint.END else MKTimelineReferencePoint.START
val sOption = MKPSourceOptions(10.0, tmpstartOffsetMKTimelineReference)
this.sourceConfiguration!!.options = sOption

Fields

Name Description
var startOffset: Double

The position where the stream should be started. Number can be positive or negative depending on the used MKTimelineReferencePoint. Invalid numbers will be corrected according to the stream boundaries. For VOD this is applied at the time the stream is loaded, for LIVE when the playback starts. Default value: 0.0

var startOffsetMKTimelineReference: MKTimelineReferencePoint?

Sets the Timeline reference point to calculate getStartOffset from. Default for live: MKTimelineReferencePoint#END Default for VOD: MKTimelineReferencePoint#START

Constructors

<init>

constructor(startOffset: Double, startOffsetMKTimelineReference: MKTimelineReferencePoint?)

SourceOptions to set as part of SourceItem. Example usage snippet :


this.sourceConfiguration = MKPSourceConfiguration(sourceConfig, analyticsConfig)
val tmpstartOffsetMKTimelineReference: MKTimelineReferencePoint = if(sourceConfig.isLive == true) MKTimelineReferencePoint.END else MKTimelineReferencePoint.START
val sOption = MKPSourceOptions(10.0, tmpstartOffsetMKTimelineReference)
this.sourceConfiguration!!.options = sOption

Parameters

Name Description
startOffset: Double

The position where the stream should be started. Number can be positive or negative depending on the used MKTimelineReferencePoint. Invalid numbers will be corrected according to the stream boundaries. For VOD this is applied at the time the stream is loaded, for LIVE when the playback starts. Default value: 0.0

startOffsetMKTimelineReference: MKTimelineReferencePoint?

Sets the Timeline reference point to calculate getStartOffset from. Default for live: MKTimelineReferencePoint#END Default for VOD: MKTimelineReferencePoint#START