Member Junction
    Preparing search index...

    Options for a VideoSourceArbiter.

    interface VideoSourceArbiterOptions {
        FormatDisabledNote?: (label: string) => string;
        FormatEnabledNote?: (label: string) => string;
        FormatSwitchNote?: (labels: readonly string[]) => string;
        Now?: () => number;
        OnError?: (context: string, error: unknown) => void;
        Policy?: readonly VideoSourcePolicyRule[];
    }
    Index

    Properties

    FormatDisabledNote?: (label: string) => string

    The note sent when a source is turned off. Return null to send nothing. Default: VideoSourceTurnedOffNote.

    FormatEnabledNote?: (label: string) => string

    The note sent when a source is turned back on. Return null to send nothing. Default: VideoSourceTurnedOnNote.

    FormatSwitchNote?: (labels: readonly string[]) => string

    The note sent when the set of sources the model sees changes while sources are being arbitrated. Receives the labels now in view. Return null to send nothing. Default: VideoSourceSeenNote with every label in view.

    Now?: () => number

    Clock, injectable for tests. Defaults to Date.now.

    OnError?: (context: string, error: unknown) => void

    Reports a problem (a throwing sink). Defaults to console.error; the arbiter never throws into a caller's timer.

    Policy?: readonly VideoSourcePolicyRule[]

    The selection policy. Defaults to DEFAULT_VIDEO_SOURCE_POLICY.