Segment class

Constructors

Segment({required String? url, Segment? initializationSegment, int? durationUs, String? title, int? relativeDiscontinuitySequence, int? relativeStartTimeUs, DrmInitData? drmInitData, required String? fullSegmentEncryptionKeyUri, required String? encryptionIV, required int? byterangeOffset, required int? byterangeLength, bool hasGapTag = false})

Properties

byterangeLength int?
The segment's byte range length, as defined by #EXT-X-BYTERANGE, or null if no byte range is specified.
final
byterangeOffset int?
The segment's byte range offset, as defined by #EXT-X-BYTERANGE.
final
drmInitData DrmInitData?
DRM initialization data for sample decryption, or null if the segment does not use CDM-DRM protection.
final
durationUs int?
The duration of the segment in microseconds, as defined by #EXTINF.
final
encryptionIV String?
The encryption initialization vector as defined by #EXT-X-KEY, or null if the segment is not encrypted.
final
fullSegmentEncryptionKeyUri String?
The encryption identity key uri as defined by #EXT-X-KEY, or null if the segment does not use full segment encryption with identity key.
final
hasGapTag bool
Whether the segment is tagged with #EXT-X-GAP.
final
hashCode int
The hash code for this object.
no setterinherited
initializationSegment Segment?
The media initialization section for this segment, as defined by #EXT-X-MAP. May be null if the media playlist does not define a media section for this segment. The same instance is used for all segments that share an EXT-X-MAP tag.
final
relativeDiscontinuitySequence int?
The number of #EXT-X-DISCONTINUITY tags in the playlist before the segment, or null if the it's unknown.
final
relativeStartTimeUs int?
The start time of the segment in microseconds, relative to the start of the playlist, or null if the it's unknown.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
The human readable title of the segment, or null if the title is unknown.
final
url String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited