MetadataParsedEvent

@objcMembers
@objc(BMPMetadataParsedEvent)
public class MetadataParsedEvent : NSObject, SourceEvent, @unchecked Sendable

See SourceListener for more information on this event.

  • Declaration

    Swift

    public let timestamp: TimeInterval
  • Declaration

    Swift

    public let name: String
  • 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:

    Declaration

    Swift

    public let metadata: Metadata
  • Declaration

    Swift

    public init(metadata: Metadata, type: MetadataType)