Resolves to the provider's current ad breaks. The result may change over
the provider's lifetime; each adsChange event indicates that a
subsequent call may return different breaks.
Returns true if the event host has any listeners.
Returns true if the event host has any listeners for the given type.
Adds an event handler for the given typed event.
The key representing the event type to listen for.
A callback to invoke when the event with the given type is dispatched.
Optionaloptions: SignalOptions
Options for changing listening behavior.
Returns a method, when invoked, removes the handler.
The minimal surface an AdController needs to source its ad breaks: a resolver for the current break list, plus an
adsChangeevent to signal when that list changes. A ReadonlyTrack satisfies this directly, so the current playing track can be passed as-is; applications may also implement it to supply ads out of band (e.g. from an external ad server).