DaterangeMetadata
@objcMembers
@objc(BMPDaterangeMetadata)
public class DaterangeMetadata : Metadata
Represents in-playlist timed metadata.
-
The unique identifier for the metadata.
Maps to the ‘ID’ property of the ‘EXT-X-DATERANGE’ spec.
Declaration
Swift
public let identifier: String
-
The class associated with the metadata.
Maps to the ‘CLASS’ property of the ‘EXT-X-DATERANGE’ spec.
Declaration
Swift
public let classLabel: String?
-
The start date of the date range.
Declaration
Swift
public let startDate: Date
-
The end date of the date range. If the receiver is intended to represent information about an instantaneous event, the value of
endDate
should be equal to the value ofstartDate
. A value ofnil
forendDate
indicates that theendDate
is indefinite.Declaration
Swift
public let endDate: Date?
-
Initializes an instance of
DaterangeMetadata
with a collection of metadata entries.Declaration
Swift
public init( entries: [MetadataEntry], identifier: String, classLabel: String?, start startDate: Date, end endDate: Date? )
Parameters
entries
An
Array
ofMetadataEntry
objects.identifier
The unique identifier for the metadata.
classLabel
The class associated with the metadata.
startDate
The start date of the date range.
endDate