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-BYTERANGE tag.
final
durationSeconds double?
Segment duration from the #EXTINF tag.
final
hashCode int
The hash code for this object.
no setterinherited
isDiscontinuity bool
Whether #EXT-X-DISCONTINUITY applies to this segment.
final
keyMethod String?
Encryption method from the active #EXT-X-KEY tag.
final
keyUri String?
Absolute key URL resolved from the active #EXT-X-KEY URI.
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 #EXTINF tag.
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