Add an ad observer.
The ad observer to be added.
Add a UI event listener.
A case-sensitive string representing the event type to listen for.
The object or function that receives a notification when an event of the specified type occurs.
Optional options: anyThe options that specify characteristics about the event listener.
Get the list of all the nonlinear ads that are currently being tracked.
For the caller to notify the session object about a playback event.
The playback event that just occurred.
For the caller to notify the session object about the current playhead position.
The current playhead position as the elapsed time on the media timeline, in seconds.
Optional programDateTime: numberThe program-date-time (usually available for live streams, as epoch time in seconds) corresponding to the current playhead position.
Remove an ad observer.
The ad observer to be removed.
Remove a UI event listener.
A string which specifies the type of event for which to remove an event listener.
The event listener to remove.
Optional options: anyThe options that specify characteristics about the event listener.
For the caller to manually start/restart periodic ad tracking info requests.
The interval (in seconds) between consecutive tracking info requests. If it is set to 0 or left unspecified, the built-in default value will be used. If it is set to a negative value, the periodic ad tracking info polling will be suspended.
Generated using TypeDoc
The session object which represents a successfully initialized MediaTailor session. This object exposes the methods/properties to manage or monitor the MediaTailor session.