HlsDownloadOptions constructor

const HlsDownloadOptions({
  1. String? downloadId,
  2. int retryAttempts = 3,
  3. Map<String, String> customHeaders = const {},
  4. HlsVariantSelection variantSelection = HlsVariantSelection.highestBandwidth,
  5. bool combineSegments = true,
  6. bool deleteSegmentsAfterCombine = true,
  7. bool keepTempFilesOnFailure = false,
  8. String outputFileExtension = 'mp4',
  9. String? outputDirectoryPath,
  10. BatchProgressCallback? batchProgressCallback,
  11. HlsLogLevel logLevel = HlsLogLevel.error,
  12. HlsLogCallback? logCallback,
})

Implementation

const HlsDownloadOptions({
  this.downloadId,
  this.retryAttempts = 3,
  this.customHeaders = const {},
  this.variantSelection = HlsVariantSelection.highestBandwidth,
  this.combineSegments = true,
  this.deleteSegmentsAfterCombine = true,
  this.keepTempFilesOnFailure = false,
  this.outputFileExtension = 'mp4',
  this.outputDirectoryPath,
  this.batchProgressCallback,
  this.logLevel = HlsLogLevel.error,
  this.logCallback,
});