OptiView Ads SDK
    Preparing search index...

    Interface AdChannelChangeEvent

    Emitted when a polled manifest describes a different ads channel than the one the session was started on. During an active break, the event is emitted after that break finishes and the latest polled manifest is applied. Before playback starts, the new manifest's adStartDelay applies; after playback starts, the delay in effect is unchanged.

    interface AdChannelChangeEvent {
        channelId: string | null;
        deliveryMode: OptiViewAdsMode;
        manifestUrl: string;
        previousChannelId: string | null;
        previousDeliveryMode: OptiViewAdsMode;
        reason: AdChannelChangeReason;
        timestamp: number;
        type: "adchannelchange";
    }

    Hierarchy (View Summary)

    Index
    channelId: string | null

    channelId of the manifest the session is aligned to now; null when it has none.

    deliveryMode: OptiViewAdsMode

    Delivery mode in effect after the switch.

    manifestUrl: string

    The polled manifest URL (unchanged by the switch).

    previousChannelId: string | null

    channelId of the manifest the session was aligned to before; null when it had none.

    previousDeliveryMode: OptiViewAdsMode

    Delivery mode in effect before the switch.

    timestamp: number
    type: "adchannelchange"