MetadataEvent
@objcMembers
@objc(BMPMetadataEvent)
public class MetadataEvent : PlayerEvent
See PlayerListener
for more information on this event.
-
The type of the associated Metadata
Declaration
Swift
public let metadataType: MetadataType
-
The metadata object
To get the typed metadata object use a cast like:
switch event.metadata { case let metadata as DaterangeMetadata: // Daterange Metadata case let metadata as Id3Metadata: // ID3 Metadata case let metadata as ScteMetadata: // Scte Metadata }
Possible types are:
DaterangeMetadata
ScteMetadata
Id3Metadata
Declaration
Swift
public let metadata: Metadata
-
Declaration
Swift
override public var name: String { get }
-
Declaration
Swift
public init(metadata: Metadata, type: MetadataType)