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
endDateshould be equal to the value ofstartDate. A value ofnilforendDateindicates that theendDateis indefinite.Declaration
Swift
public let endDate: Date? -
Initializes an instance of
DaterangeMetadatawith a collection of metadata entries.Declaration
Swift
public init( entries: [MetadataEntry], identifier: String, classLabel: String?, start startDate: Date, end endDate: Date? )Parameters
entriesAn
ArrayofMetadataEntryobjects.identifierThe unique identifier for the metadata.
classLabelThe class associated with the metadata.
startDateThe start date of the date range.
endDate
DaterangeMetadata Class Reference