CachingPlayerItemConfiguration

public enum CachingPlayerItemConfiguration

CachingPlayerItem global configuration.

  • How much data is downloaded in memory before stored on a file.

    Declaration

    Swift

    public static var downloadBufferLimit: Int
  • How much data is allowed to be read in memory at a time.

    Declaration

    Swift

    public static var readDataLimit: Int
  • Flag for deciding whether an error should be thrown when URLResponse’s expectedContentLength is not equal with the downloaded media file bytes count. Defaults to false.

    Declaration

    Swift

    public static var shouldVerifyDownloadedFileSize: Bool
  • If set greater than 0, the set value with be compared with the downloaded media size. If the size of the downloaded media is lower, an error will be thrown. Useful when expectedContentLength is unavailable. Default value is 0.

    Declaration

    Swift

    public static var minimumExpectedFileSize: Int
  • Flag for deciding whether an NSFileWriteOutOfSpaceError should be thrown when there is not enough available disk space left for caching the entire media file. Defaults to true.

    Declaration

    Swift

    public static var shouldCheckAvailableDiskSpaceBeforeCaching: Bool