SourceLatencyApi
@objc(BMPSourceLatencyApi)
@objcMembers
public class SourceLatencyApi : NSObject
Provides the means to manage latency for a live-stream on a Source.
Accessible through Source.latency.
-
Specifies if the player should try to automatically restore the previous playback position after a stall.
Setting a new value requires that the
Sourceis attached to aPlayerto take effect. Set the initial value usingSourceLiveConfig.automaticallyPreservesLatencyinstead.If set to
true, the player will time shift to the last playback position after a stall ended (does not have to be the configuredtargetLatency). For example, when the player stalls after callingplayer.timeShift = -10, it will try to restore the-10seconds time shift automatically.Note
If the network cannot deliver media quickly enough playback may stall endlessly.Does not have any effect for VOD assets.
Declaration
Swift
public var automaticallyPreservesLatency: Bool { get set } -
Provides the system’s recommended latency.
Returns the
PART-HOLD-BACKvalue from the manifest if present. If there is noPART-HOLD-BACKvalue found, if returns an appropriate value. E.g. three times the segment duration.Returns
.nanfor VOD assets.Declaration
Swift
public var recommendedLatency: TimeInterval { get }
SourceLatencyApi Class Reference