getAdPodAt

abstract fun getAdPodAt(absolutePlayheadPosition: Long): AdPod

Returns the Ad pod at the position specified by the absolute playhead position, if the position belongs to an Ad, or null if it belongs to content.

if the method isPlayingAd returns true with the same playhead position, the AdPod must not be null.

Return

the Ad pod, if available.

Parameters

absolutePlayheadPosition

the absolute playhead position in milliseconds.

See also