Interface ServerSideAdIntegrationHandlerExperimental

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): MaybeAsync<SourceDescription>;
    skipAd?(ad): void;


  • 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>