SsaiApi
Provides hooks for server-side ad insertion integrations.
Accessible through Player.ssai. Vendor adapters can use this API to expose stitched ad periods as regular player ad state without relying on player internals.
Unless stated otherwise, mutating and lifecycle calls have no effect and emit an incorrect API usage warning when there is no active playback session. Call these APIs after loading a source with Player.load.
Functions
Clears all SSAI ad state and removes all known SSAI ad breaks from Player.ads schedule.
Finishes the currently active SSAI ad break.
Adds or replaces an SSAI ad break and exposes it through Player.ads schedule.
Adds or replaces multiple SSAI ad breaks and exposes them through Player.ads schedule.
Removes a previously registered SSAI ad break with the same SsaiAdBreak.id as adBreak from Player.ads schedule.
Reports a non-fatal SSAI ad error.
Reports an SSAI ad quartile.
Reports a fatal SSAI error through the player error event flow.
Starts treating playback as an SSAI ad break.