HlsMediaSegment class
Metadata declared for an HLS media playlist segment.
Constructors
- HlsMediaSegment({String? uri, String? url, double? durationSeconds, String? title, String? byteRange, bool isDiscontinuity = false, String? programDateTime, int? sequenceNumber, String? keyMethod, String? keyUri})
-
Creates HLS media segment metadata.
const
-
HlsMediaSegment.fromMap(Map<
Object?, Object?> map) -
Creates segment metadata from a map using stable field names.
factory
Properties
- byteRange → String?
-
Raw byte range from the
#EXT-X-BYTERANGEtag.final - durationSeconds → double?
-
Segment duration from the
#EXTINFtag.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isDiscontinuity → bool
-
Whether
#EXT-X-DISCONTINUITYapplies to this segment.final - keyMethod → String?
-
Encryption method from the active
#EXT-X-KEYtag.final - keyUri → String?
-
Absolute key URL resolved from the active
#EXT-X-KEYURI.final - programDateTime → String?
-
Program date-time value from
#EXT-X-PROGRAM-DATE-TIME.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sequenceNumber → int?
-
Segment sequence number derived from
#EXT-X-MEDIA-SEQUENCE.final - title → String?
-
Optional segment title from the
#EXTINFtag.final - uri → String?
-
Segment URI as declared in the media playlist.
final
- url → String?
-
Absolute segment URL resolved against the media playlist URL.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> - Serializes segment metadata to a map using stable field names.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited