LatencyApi

@objcMembers
@objc(BMPLatencyApi)
public class LatencyApi : NSObject

Provides the means to manage latency for live-streams. Accessible through Player.latency.

Note

Disable PlayerConfig.tweaksConfig.isCustomHlsLoadingEnabled when intending to play HLS-LL streams below iOS and tvOS 17. Due to platform limitations, HLS-LL streams are not supported there while this property is enabled.

This API is not supported during casting.

  • Declaration

    Swift

    public weak var _delegate: _LatencyApiDelegate?
  • The current latency in seconds.

    Note

    This API is not supported during casting.

    Declaration

    Swift

    public var currentLatency: TimeInterval { get }

    Return Value

    The current latency in seconds, or NaN in case the asset is either a VoD or does not have any mapped date via the EXT-X-PROGRAM-DATE-TIME tag.