Configuration options for the downloader.

Hierarchy

  • DownloaderConfig

Properties

concurrency: number

The maximum number of concurrent downloads.

fetcher: ((input, init?) => Promise<Response>)

Type declaration

    • (input, init?): Promise<Response>
    • The fetch function to use for downloading files. It requires to be able to handle cookie states.

      Parameters

      • input: RequestInfo | URL
      • Optional init: RequestInit

      Returns Promise<Response>

id: string

The ID of the downloader. Only used for logging.

retries: number

The number of times to retry downloading a segment.

subtle: SubtleCrypto

The webcrypto.SubtleCrypto implementation to use for decrypting segments.

Generated using TypeDoc