@ceeblue/wrts-client
    Preparing search index...

    Class Metadata

    Metadata representation

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    audioTracks: MediaTrack[] = []

    Audio tracks sorted by descending BPS

    contentProtection: Map<string, ContentProtection> = ...

    Map of List of ContentProtection

    dataTracks: MediaTrack[] = []

    Data track

    date: Date = ...

    Date of Metadata creation

    log: ILog

    Start a log

    a Log object with the levels of log to call

    protocolVersion: { major: number; minor: number; patch: number } = ...

    The version of the protocol

    tracks: Map<number, MediaTrack> = ...

    Tracks sorted by descending BPS

    videoTracks: MediaTrack[] = []

    Video tracks sorted by descending BPS

    Accessors

    Methods

    • Filter metadata to subset with only audio track with a codec supported

      Parameters

      • Optionalcodecs: Codec[]

        audio codecs supported

      Returns this

      the metadata modified

    • Filter metadata to subset with only data track with a codec supported

      Parameters

      • Optionalcodecs: Codec[]

        data codecs supported

      Returns this

      the metadata modified

    • Filter metadata to subset with only video track with a codec supported

      Parameters

      • Optionalcodecs: Codec[]

        video codecs supported

      Returns this

      the metadata modified