Bitmovin Player React Native SDK - v1.6.0
    Preparing search index...

    Interface MetadataEventBase<T>

    Base event type for events that carry timed metadata.

    Concrete events like MetadataParsedEvent and MetadataEvent fix metadataType and metadata to a specific metadata entry type.

    Branching on metadataType using an if/switch statement narrows the event to the appropriate metadata subtype, giving access to entry-specific fields.

    interface MetadataEventBase<T extends MetadataEntry> {
        metadata: MetadataCollection<T>;
        metadataType: T["metadataType"];
        name: string;
        timestamp: number;
    }

    Type Parameters

    • T extends MetadataEntry

      The metadata entry type carried by this event

    Hierarchy (View Summary)

    Index

    Properties

    Metadata entries and their trigger time.

    The collection is homogeneous: all entries share the same metadata type, reflected by metadataType.

    metadataType: T["metadataType"]

    Discriminator for the metadata type carried by this event.

    All entries in MetadataCollection.entries share this value.

    Use it in an if/else or switch to narrow the event type.

    name: string

    This event name as it is on the native side.

    timestamp: number

    The UNIX timestamp in which this event happened.