Segment constructor

Segment({
  1. required String? url,
  2. Segment? initializationSegment,
  3. int? durationUs,
  4. String? title,
  5. int? relativeDiscontinuitySequence,
  6. int? relativeStartTimeUs,
  7. DrmInitData? drmInitData,
  8. required String? fullSegmentEncryptionKeyUri,
  9. required String? encryptionIV,
  10. required int? byterangeOffset,
  11. required int? byterangeLength,
  12. bool hasGapTag = false,
})

Implementation

Segment({
  required this.url,
  this.initializationSegment,
  this.durationUs,
  this.title,
  this.relativeDiscontinuitySequence,
  this.relativeStartTimeUs,
  this.drmInitData,
  required this.fullSegmentEncryptionKeyUri,
  required this.encryptionIV,
  required this.byterangeOffset,
  required this.byterangeLength,
  this.hasGapTag = false,
});