moqtail-ts
    Preparing search index...

    Type Alias Track

    Describes a media/data track known to the client (either published locally or subscribed to).

    const liveStream: ReadableStream<MoqtObject> = buildCameraStream()
    const track: Track = {
    fullTrackName,
    forwardingPreference: ObjectForwardingPreference.Latest,
    trackSource: { live: liveStream },
    publisherPriority: 0
    }
    client.addOrUpdateTrack(track)
    const cache = new MemoryObjectCache()
    recording.forEach(obj => cache.add(obj))
    const track: Track = {
    fullTrackName,
    forwardingPreference: ObjectForwardingPreference.All,
    trackSource: { past: cache },
    publisherPriority: 64
    }
    client.addOrUpdateTrack(track)
    const cache = new MemoryObjectCache()
    const liveStream = buildLiveReadableStream()
    const track: Track = {
    fullTrackName,
    forwardingPreference: ObjectForwardingPreference.Latest,
    trackSource: { past: cache, live: liveStream },
    publisherPriority: 8
    }
    client.addOrUpdateTrack(track)
    type Track = {
        forwardingPreference: ObjectForwardingPreference;
        fullTrackName: FullTrackName;
        publisherPriority: number;
        trackAlias?: bigint;
        trackSource: TrackSource;
    }
    Index

    Properties

    forwardingPreference: ObjectForwardingPreference

    Hint controlling which objects SHOULD be forwarded / prioritized.

    fullTrackName: FullTrackName

    Globally unique identifier for the track.

    publisherPriority: number

    0 (highest) .. 255 (lowest) priority advertised with objects. Values are rounded to nearest integer then clamped between 0 and 255.

    trackAlias?: bigint

    Optional compact numeric alias assigned during protocol negotiation.

    trackSource: TrackSource

    Accessors for live and/or past objects belonging to this track.