Optional
destroyHandler 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.
Optional
resetHandler which will be called before a new source is loaded into the player, or before the player is destroyed.
This allows the integration to clean up any source-specific resources, such as scheduled ads or pending HTTP requests.
error
event
(as if by calling ServerSideAdIntegrationController.fatalError).Optional
setHandler which will be called when a new source is loaded into the player.
This allows the integration to transform the source description, e.g. by calling an external service to replace the content URL, or by adding a fixed pre-roll linear ad to the list of ads.
error
event
(as if by calling ServerSideAdIntegrationController.fatalError).Optional
skipHandler which will be called when an ad is requested to be skipped.
To skip the ad, the handler should call ServerSideAdIntegrationController.skipAd.
aderror
event
(as if by calling ServerSideAdIntegrationController.error).
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.
See
Ads.registerServerSideIntegration