ReadonlycurrentThe currently playing ad break.
ReadonlycurrentList of currently playing ads.
Optional ReadonlydaiThe Google DAI API.
Whether a linear ad is currently playing.
ReadonlyscheduledList of ad breaks which still need to be played.
ReadonlyscheduledList of ads which still need to be played.
Add the given listener for the given event type(s).
The type of the event.
The callback which is executed when the event occurs.
Experimental
Register a custom client-side advertisement integration.
This allows you to integrate with third-party advertisement providers that play ads separately from the content, and have them report their ads and ad-related events through the THEOplayer Ads API.
Ad descriptions whose AdDescription.integration matches the given integrationId,
scheduled through SourceDescription.ads or Ads.schedule, are passed to
ClientSideAdIntegrationHandler.schedule.
An identifier of the integration.
Factory that will construct a ClientSideAdIntegrationHandler for this integration.
Register client-side integrations before the first call to ChromelessPlayer.play, so the player's linear ad video element can be prepared with the user's action.
Register a custom advertisement integration.
This allows you to integrate with third-party advertisement providers, and have them report their ads and ad-related events through the THEOplayer Ads API.
An identifier of the integration.
Factory that will construct an ServerSideAdIntegrationHandler for this integration.
Remove the given listener for the given event type(s).
The type of the event.
The callback which will be removed.
Add an ad break request.
Describes the ad break to be scheduled.
- Available since v2.18.0.
- Prefer scheduling ad breaks up front through SourceConfiguration.ads.
The API for advertisements.
Remarks
- Integrates with
'csai','google-ima','google-dai','freewheel'or'theoads'.