THEOplayer Web SDK
    Preparing search index...

    Interface ServerSideAdIntegrationHandler

    A handler for a server-side ad integration.

    You can implement one or more of these methods to hook into various parts of the player's lifecycle and perform your integration-specific ad handling.

    Use the ServerSideAdIntegrationController provided by ServerSideAdIntegrationFactory to update the state of your integration.

    interface ServerSideAdIntegrationHandler {
        destroy(): MaybeAsync<void>;
        resetSource(): MaybeAsync<void>;
        setSource(source: SourceDescription): MaybeAsync<SourceDescription>;
        skipAd(ad: Ad): void;
    }
    Index

    Methods

    • Handler which will be called when the player is destroyed.

      This allows the integration to clean up any resources, such as DOM elements or event listeners.

      Returns MaybeAsync<void>