HLSSettings Class

public class HLSSettings

HLS settings shared by the Apple HLS player and downloader.

Public

  • Legacy default properties loaded for HLSPlayer when no custom player properties are set.

    Declaration

    Swift

    public static let defaultHLSPlayerPropertiesToLoad: [AssetPropertiesManager.Property]
  • Legacy default properties loaded for HLSDownloader when no custom downloader properties are set.

    Declaration

    Swift

    public static let defaultHLSDownloaderPropertiesToLoad: [AssetPropertiesManager.Property]
  • Default asset properties to load up front for HLSPlayer.

    Declaration

    Swift

    public let hlsPlayerDefaultPropertiesToLoad: [AssetPropertiesManager.Property]
  • Default asset properties to load up front for HLSDownloader.

    Declaration

    Swift

    public let hlsDownloaderDefaultPropertiesToLoad: [AssetPropertiesManager.Property]
  • Sets the native thumbnails seek tolerances in seconds

    Setting it to 0 will force the player to extract the thumbnail images from video data. Default 0.5.

    Declaration

    Swift

    public let nativeThumbnailsSeekTolerance: Double
  • Controls when the configured live edge latency is applied to a player item.

    When true the latency is applied once the item reaches the readyToPlay status, which lets AVFoundation resolve the live window first and keeps the initial playback position from being clamped to a stale live edge. When false (default, legacy behavior) it is applied right away, while the item is being created.

    Declaration

    Swift

    public var applyLiveEdgeLatencyOnItemReady: Bool
  • Returns a custom HLSPlayer preload override, or nil to preserve the legacy player behavior.

    Declaration

    Swift

    public var customHLSPlayerDefaultPropertiesToLoad: [AssetPropertiesManager.Property]? { get }
  • Active HLS settings used by HLSPlugin, HLSPlayer, and HLSDownloader.

    Declaration

    Swift

    public static var current: HLSSettings